Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [undefined-reference]

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

undefined-reference
-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 ...
William Dappen's user avatar
-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(...
Melih 's user avatar
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/...
Doppler's user avatar
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 ...
Chris Gnam's user avatar
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 , ...
sskk's user avatar
  • 11
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 ...
望曉天's user avatar
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 ...
user25670157's user avatar
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 ...
AvlKP's user avatar
  • 1
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/...
matanox's user avatar
  • 13.8k
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 ...
Red_0nE's user avatar
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 \ ...
mjyazdani's user avatar
  • 2,025
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-...
NinaNuska's user avatar
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 ...
caiping Peng's user avatar
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 ...
myACEY's user avatar
  • 11
-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 ...
Aidan Pastonyck's user avatar

15 30 50 per page
1
2 3 4 5
86