Tag Archives: undefined reference to `log@GLIBC_2.29′

[Solved] C++ Compile Error: undefined reference to `log@GLIBC_2.29′

problem

Copy the existing workspace to the local modified code for compilation, and report an error when encountering opencv related dependencies

libopencvxxx.so ... undefined reference to `log@GLIBC_2.29'

Solution:

The original computer compiles the workspace normally, eliminates the problem of the code itself, and starts to find dependencies

After careful comparison, it is found that my environment Ubuntu 18.04 has built-in gcc7.5, and the target environment Ubuntu 20.04 has built-in gcc9.3

libopencv.So compiles the source code of the target machine, so it depends on the high version of glibc. Delete opencv and the error will disappear after local recompilation.