Objdump查看依赖so动态库文件

在做系统跨平台移植的时候,需要知道生成的o文件需要的so动态库文件,就可以使用下命令了。


zchx@ubuntu:~/workspace/mips_UDP/g++build$ ls

a.out UDP_Multicast.cpp zchx@ubuntu:~/workspace/mips_UDP/g++build$ objdump -x a.out |grep NEEDED NEEDED libpthread.so.0 NEEDED libboost_system.so.1.49.0 NEEDED libstdc++.so.6 NEEDED libm.so.0 NEEDED libgcc_s.so.1 NEEDED libc.so.0 zchx@ubuntu:~/workspace/mips_UDP/g++build$

相关文章

迭代器模式(Iterator)迭代器模式(Iterator)[Cursor]意图...
高性能IO模型浅析服务器端编程经常需要构造高性能的IO模型,...
策略模式(Strategy)策略模式(Strategy)[Policy]意图:定...
访问者模式(Visitor)访问者模式(Visitor)意图:表示一个...
命令模式(Command)命令模式(Command)[Action/Transactio...
生成器模式(Builder)生成器模式(Builder)意图:将一个对...