This blog post is just a record of C + + compilation and installation problems – it doesn’t give the correct solution
main.cpp:(.text+0xd06): undefined reference to `uni_text::UniText::UniText(std::string const&, int)'
main.cpp:(.text+0xe73): undefined reference to `uni_text::UniText::PutText(cv::Mat&, std::string const&, cv::Point_<int> const&, cv::Scalar_<double> const&, bool)'
Analysis:
encounter this problem: run some C + + projects that contain special so dynamic library or static library;
the compiled versions of GCC and G + + used by the native environment are not completely consistent with the libraries (dynamic library or static library) compiled by the author, resulting in these errors
1: There is no corresponding dependency (static library or dynamic library). 2: the compiled versions of some static libraries or dynamic libraries in the project are inconsistent
Solutions:
In the final analysis, it’s an environmental issue: GCC, G + + version matching or the supplement of third-party dependency
Read More:
- About “undefined reference to” when compiling uboot__ aeabi_ unwind_ cpp_ The solution of “PR0 ‘”
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- Ora-02292: integrity constraint (XX) violated – child record found foreign key Association, record cannot be deleted
- The solution of undefined reference to error
- Solutions for undefined reference to ‘xxx’ encountered during linking
- Org.springframework.beans.factory.xml.xmlbeandefinitionstoreexception: the wildcard matching is comprehensive, but the declaration of element XX: XX XX cannot be found
- Vitis: platform out of date, makefile error at compile time; The modified application compiles to undefined reference
- Solving CodeBlocks OpenGL glew undefined reference to`_ imp__ Glewinit ‘error
- Undefined reference to ‘CV:: imread (CV:: String const & int)’
- C++ compiler prompt “undefined reference to…”[How to Fix]
- undefined reference to `pthread_create’ collect2: ld returned 1 exit status
- libxx.so: undefined reference, vector.reserve(n) [How to Solve]
- QT: error: undefined reference to ‘XXXX’ error prompt, solution
- undefined reference to `WinMain‘collect2.exe: error: ld returned 1 exit status
- [Solved] undefined reference to ‘cv::xfeatures2d::SIFT::create(…)’
- Vue uses this. $refs. Subcomponent Ref. method to report an error: cannot read property ‘resetfields’ of undefined problem
- How to generate main () method in java graphical interface
- Use xx [‘xx ‘] = XX to set field value or does not support field: XXX
- When websocket transmits JSON text, the parse method reports an error
- Error: undefined reference to ‘CV:: xxx’ encountered in using OpenCV in QT