Can you please tell me how can I dump all the symbols in a .a file on MacOS X?
I am getting a linking error while compiling my c++ problem on MacOS X. I would like to find out if the sybmols exists on the .a file that I am linking with.
Thank you.
Nm displays the name list (symbol table) of each object file in the argument list. If an argument is an archive, a listing for each object file in the archive will be produced. File can be of the form libx.a(xo), in which case only symbols from that member of the object file are listed. ... etc
nm -g | c++filt
Mac nm
没有demangle选项,因此您只需通过c++filt
(一个demangler)运行输出。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.