Skip to main content

Questions tagged [undefined-reference]

A linker error caused by a missing definition of a symbol used elsewhere in a program

undefined-reference
0 votes
1 answer
69 views

Application fails to link with library linked against OpenImageIO

I have a library that uses many dependencies managed by vcpkg. I have never had any issues until I recently added OpenImageIO. On Windows 10 (MSVC 17.6) my library builds and links successfully, and ...
Chris Gnam's user avatar
1 vote
0 answers
27 views

undefined references using gcc link-time optimizer

I'm tring to use gcc link-time optimizer, but encounter some issue related to the gcc linker cannot correctly resolving references to symbols in 'newlib_syscalls.c'. However, same source code , ...
sskk's user avatar
  • 11
0 votes
1 answer
66 views

Why am I getting "undefined reference" errors trying to use OpenCV in Qt Creator with MinGW?

Just started to use OpenCV and Qt. When I use Qt 6, according to the routines in the book entered the corresponding code, but in the compilation stage has been reported an error. Originally I thought ...
望曉天's user avatar
0 votes
0 answers
59 views

OpenCV Include doesnt deliver references to cv Functions (undefined reference)

i just got started with c++ and have been trying to use OpenCV for an GUI. I installed Cmake, Ninja and OpenCV into my C:/ directory. I now planned to Build the Project but i get an error in the ...
user25670157's user avatar
0 votes
0 answers
66 views

Undefined reference when linking to mingw libraries

I have installed MinGW and CMake with MSYS2 UCRT64. I have repeatedly failed to build a GUI application using several libraries: IUP and NAppGUI. All the problems are of the type, "undefined ...
AvlKP's user avatar
  • 1
0 votes
2 answers
139 views

building OpenCV on Ubuntu (Undefined reference to `g_memdup2’)

How would you safely go about what appears to be an outdated (or too new) version of libpangosft on Ubuntu, when building OpenCV from source on Ubuntu 22.04? [ 18%] Linking CXX executable ../../bin/...
matanox's user avatar
  • 13.8k
0 votes
0 answers
79 views

Undefined reference to SDL_main()?

I was just trying to set things up on VS Code for C++ and SDL. I install chocolatey to install make. I also installed all the things required. but now this happened. Whenever I run the command make ...
Red_0nE's user avatar
1 vote
1 answer
143 views

Use OpenCV in qt qmake project: undefined reference

I want to use OpenCV in a QT qmake project. The vrsions are opencv 4.9.0 and QT 5.15.2(MSV 2019,64bit). .pro file INCLUDEPATH += C:/opencv/build/include LIBS += -LC:/opencv/build/x64/vc16/lib \ ...
mjyazdani's user avatar
  • 2,025
0 votes
1 answer
20 views

Undefined reference to clFFT

I am trying to use clFFT so I could calculate FFT on GPU I use Msys2 MinGW64 (mingw-w64-x86_64) and Cmake and OpenCL works fine for me (I use AMD GPU) and installed OpenCL with pacman: pacman -S mingw-...
NinaNuska's user avatar
0 votes
0 answers
75 views

"undefined reference to av···@···"ffmpeg error,when i cross compile opencv4.5.3 which include ffmpeg lib

I'm working on an embedded deployment project, doing object detection work on a real-time video stream. So I have to port my C++ inference program to the RKNN1808 platform. I compile this program with ...
caiping Peng's user avatar
1 vote
0 answers
54 views

QT undefined reference to external lib function

I'm new to c++ and currently trying to create QT login-register GUI app with hashing passwords. For Bcrypt I'm using this library So, I copied it, created binaries with CMake GUI and than builded them ...
myACEY's user avatar
  • 11
-1 votes
1 answer
58 views

Error: `undefined reference` to function with array and function pointer as parameters [closed]

Each time I call the force function I get an undefined reference; collect2: error: ld returned 1 exit status. Here is the declaration of the force function above the main function in main.cpp: void ...
Aidan Pastonyck's user avatar
0 votes
0 answers
34 views

C++ Loop Iteration and Undefined Reference [duplicate]

Please note that this is a .cpp file that is being worked on as part of a larger program. To my knowledge, all other files work correctly. This is being done in Visual Studio Code. Code: #include &...
Amanda Taylor's user avatar
0 votes
0 answers
71 views

Undefined references when linking against GLFW?

Important: I didn't use Visual Code (much info in Internet about OpenGL setting up is related to this IDE) (I use VSCode). As I got, there is OpenGL realization (GLFW) and OpenGL loader, that load ...
IGoogleBeforeAsking's user avatar
0 votes
0 answers
45 views

undefined reference error getting while instrumenting the opentelemetry into dice server C++ application

Trying to build and execute the dice server (C++) application provided by the opentelemetry, but then we are getting undefined reference build error. root@kesharib:/home/maiya/otel-cpp-starter/roll-...
Prakash Narayana Maiya's user avatar

15 30 50 per page
1
2 3 4 5
85