linux build commands

来源:互联网 发布:淘宝圣手魔方 编辑:程序博客网 时间:2024/06/06 16:52
ldd               print shared library dependencies
nm                list symbols from object files
readelf          Displays information about ELF files
objdump          display information from object files                         objdump -d a.out
strings          print the strings of printable characters in files
gprof          display call graph profile data
ar               create, modify, and extract from archives                       ar cqs libhello.a hello.o

gcc               GNU project C and C++ compiler                                 gcc -c -o hello.o hello.c

                                                                                                       gcc -shared -fPIC -o libhello.so hello.c

                                                                                                       gcc -o hello main.c -static -L. -lhello

                                                                                                       gcc -o hello main.c -L. -lhello

0 0
原创粉丝点击