This may be a stupid question, but if I compile a shared library using g++ on one distribution of Linux, and then move those libraries as object files via flash drive to another computer with the exact same Linux distro and version of g++ will I still be able to link those libraries in my source files on the second
Tag: object-files
Windows Executable file structure
I know that generally the object file has code, data, heap and stack sections. But I want to know how this is arranged in windows executables and Linux executables. I searched on internet and found some structure. I understood .text is for code and .data is for global variables. I want to know here is the stack and heap in
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. 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.