Skip to content
Advertisement

How to view symbols in object files?

How can I view symbols in a .o file? nm does not work for me. I use g++/linux.

Advertisement

Answer

Instead of nm, you can use the powerful objdump. See the man page for details. Try objdump -t myfile or objdump -T myfile. With the -C flag you can also demangle C++ names, like nm does.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement