博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
编译.so .a的结果
阅读量:5061 次
发布时间:2019-06-12

本文共 2445 字,大约阅读时间需要 8 分钟。

ocs52:/home2/billing/panpan/C++>ls

hello  hello.cpp  hello.h  hello.o  libhello.a  libhello.so  libwpp.a  main.cpp  main.o
ocs52:/home2/billing/panpan/C++>nm hello.o
                 U __cxa_atexit
                 U __dso_handle
000000000000003e t _GLOBAL__I__Z5helloPKc
                 U __gxx_personality_v0
0000000000000054 t __tcf_0
0000000000000000 t _Z41__static_initialization_and_destruction_0ii
000000000000006c T _Z5helloPKc
                 U _ZNSolsEPFRSoS_E
                 U _ZNSt8ios_base4InitC1Ev
                 U _ZNSt8ios_base4InitD1Ev
                 U _ZSt4cout
                 U _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
0000000000000000 b _ZSt8__ioinit
                 U _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
ocs52:/home2/billing/panpan/C++>nm libhello.a

hello.o:

                 U __cxa_atexit
                 U __dso_handle
000000000000003e t _GLOBAL__I__Z5helloPKc
                 U __gxx_personality_v0
0000000000000054 t __tcf_0
0000000000000000 t _Z41__static_initialization_and_destruction_0ii
000000000000006c T _Z5helloPKc
                 U _ZNSolsEPFRSoS_E
                 U _ZNSt8ios_base4InitC1Ev
                 U _ZNSt8ios_base4InitD1Ev
                 U _ZSt4cout
                 U _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
0000000000000000 b _ZSt8__ioinit
                 U _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
ocs52:/home2/billing/panpan/C++>ldd libhello.so
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002ab3dc282000)
        libm.so.6 => /lib64/libm.so.6 (0x00002ab3dc480000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002ab3dc5d5000)
        libc.so.6 => /lib64/libc.so.6 (0x00002ab3dc6e3000)
        /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
ocs52:/home2/billing/panpan/C++>nm libwpp.a

hello.o:

                 U __cxa_atexit
                 U __dso_handle
000000000000003e t _GLOBAL__I__Z5helloPKc
                 U __gxx_personality_v0
0000000000000054 t __tcf_0
0000000000000000 t _Z41__static_initialization_and_destruction_0ii
000000000000006c T _Z5helloPKc
                 U _ZNSolsEPFRSoS_E
                 U _ZNSt8ios_base4InitC1Ev
                 U _ZNSt8ios_base4InitD1Ev
                 U _ZSt4cout
                 U _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
0000000000000000 b _ZSt8__ioinit
                 U _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc

main.o:

                 U __gxx_personality_v0
0000000000000000 T main
                 U _Z5helloPKc
ocs52:/home2/billing/panpan/C++>ldd hello
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b6c9bd03000)
        libm.so.6 => /lib64/libm.so.6 (0x00002b6c9bf01000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b6c9c056000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b6c9c164000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b6c9bbe7000)
ocs52:/home2/billing/panpan/C++>

转载于:https://www.cnblogs.com/angelpan1014/archive/2012/10/25/2738817.html

你可能感兴趣的文章
hashMap的源码实现
查看>>
jquery selector 2
查看>>
NSIS API 函数常用备份
查看>>
STL之list(双向链表)
查看>>
朴素贝叶斯应用:垃圾邮件分类
查看>>
php中的常用数组函数(七) 数组合并 array_merge()和array_merge_recursive()
查看>>
《DSP using MATLAB》 Problem 4.9
查看>>
extern "c"
查看>>
利用CSS3-boxshadow绘制“蒙娜丽莎的微笑”
查看>>
scanf()函数
查看>>
USACO4.1.2--Fence Loops
查看>>
MyBatis 一级缓存和二级缓存及ehcache整合
查看>>
未来计算机发展趋势
查看>>
list转datatable,SqlBulkCopy将DataTable中的数据批量插入数据库
查看>>
结构模式--之--门面模式
查看>>
xcode 出现the file couldn't be opened
查看>>
StartOS使用初体验
查看>>
百度直接搜IP可以查看本机外网IP
查看>>
ASCII、Unicode、UTF-8以及Python3编码问题
查看>>
word 实现多级列表编号
查看>>