How can I view symbols in a .o file? nm does not work for me. I use g++/linux.
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.
nm
objdump
objdump -t myfile
objdump -T myfile
-C