Collection of Linux development issues (continuously updated)

dwarf debugging information

The dwarf debugging information is part of the elf format. The compilation prompts a dwarf version problem. Add -gdwarf-2 to compile and specify the dwarf version.
After using gdb to start the file, a dwarf problem is prompted and the file cannot be debugged . The gdb and dwarf versions are incompatible.

ABI is incompatible between gcc4.* and gcc.5.*, causing higher version software development links to require upgrading gcc

GLIBCXX_version problem

strings libstdc++.so Find the latest version of the file
ln -s * libstdc++.so Replace the file (replace the prompt file according to the error prompt)

undfine reference

nm -C *.so |grep name //To find symbols,
use the full path to specify the so or a file in the gcc command line, without using -L

symbol lookup error

Use the ldd command to check the path of the linked library. Other files may be found. There is a path problem.

Guess you like

Origin blog.csdn.net/daoer_sofu/article/details/131831760