Questions tagged [undefined-reference]
A linker error caused by a missing definition of a symbol used elsewhere in a program
undefined-reference
1,278
questions
-1
votes
0
answers
35
views
Undefined reference to _imp__glClear@4? [closed]
I have been trying to set up a graphics environment using GLFW following this tutorial on OpenGL.
I have been having a great deal of trouble installing the GLFW library using CLion and by extension ...
-1
votes
1
answer
42
views
Import glfw for CLion [closed]
I couldnt manage to find a way to import glfw library for CLion. I tried things but they didnt work as expected.
cmake_minimum_required(VERSION 3.29)
project(TestProj)
set(CMAKE_CXX_STANDARD 20)
set(...
0
votes
0
answers
44
views
Undefined Reference For RayLibs when linking with CMake?
I'm trying to use CMake to setup a simple project linking raylibs. Whenever I try to run my main I keep on getting undeclared references to my function calls:
/usr/bin/ld: /home/doppler/C++ Projects/...
0
votes
1
answer
76
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 ...
1
vote
0
answers
30
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 , ...
0
votes
1
answer
88
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 ...
0
votes
0
answers
63
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 ...
0
votes
0
answers
81
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 ...
0
votes
2
answers
151
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/...
0
votes
0
answers
84
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 ...
1
vote
1
answer
145
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 \
...
0
votes
1
answer
26
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-...
0
votes
1
answer
113
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 ...
1
vote
0
answers
56
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 ...
-1
votes
1
answer
61
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 ...