The solution of undefined reference to ‘xxx’ encountered when linking.
Note: when adding the library, remember to add the address of the library.
1.undefined reference to `cuInit’
Plus Library
-lcuda
2. undefined reference to symbol ‘_ ZN5boost6system15system_ categoryEv’
Solution: Add Link Library:
-lboost_system
3.undefined reference to ‘cv::String::allocate(unsigned long)’
Solution: Add Link Library:
-lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_videoio -lopencv_imgcodecs
[UNK]
[UNK]
[UNK]
[UNK]
[UNK]
[UNK]
Read More:
- Error: undefined reference to ‘CV:: xxx’ encountered in using OpenCV in QT
- The solution of undefined reference to error
- main.cpp : (. Text + 0xd06): undefined reference to XX method | simple record
- undefined reference to `pthread_create’ collect2: ld returned 1 exit status
- Solving CodeBlocks OpenGL glew undefined reference to`_ imp__ Glewinit ‘error
- C++ compiler prompt “undefined reference to…”[How to Fix]
- Undefined reference to ‘CV:: imread (CV:: String const & int)’
- Configuration of OpenGL under CodeBlocks and solutions to problems encountered
- [Solved] undefined reference to ‘cv::xfeatures2d::SIFT::create(…)’
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- QT: error: undefined reference to ‘XXXX’ error prompt, solution
- undefined reference to `WinMain‘collect2.exe: error: ld returned 1 exit status
- Solutions to the problem of “symbol lookup error xxxxx, undefined symbol”
- Vitis: platform out of date, makefile error at compile time; The modified application compiles to undefined reference
- About “undefined reference to” when compiling uboot__ aeabi_ unwind_ cpp_ The solution of “PR0 ‘”
- libxx.so: undefined reference, vector.reserve(n) [How to Solve]
- Solutions to problems encountered when installing isc-dhcp-server on debian9.6
- Solutions to some problems encountered in programming with vs2017
- Three solutions to the appearance of notice: undefined index in PHP
- [TS] solutions to line 0: parsing error: cannot read property ‘map’ of undefined