本文共 609 字,大约阅读时间需要 2 分钟。
看代码:
#include看结果:using namespace std;class A {public: void fun1() { printf("this is a xxx1\n"); } void fun2();};void A::fun2(){ printf("this is a xxx2\n");}void fun3(){ printf("this is a xxx3\n");}int main(){ return 0;}
xxxxxx:~> strings a.out /lib/ld-linux.so.2SuSESuSElibpthread.so.0_Jv_RegisterClasseslibstdc++.so.6__gxx_personality_v0_ZNSt8ios_base4InitC1Ev_ZNSt8ios_base4InitD1Ev__gmon_start__libm.so.6libgcc_s.so.1libc.so.6puts__cxa_atexit_IO_stdin_used__libc_start_mainGLIBC_2.0GLIBC_2.1.3CXXABI_1.3GLIBCXX_3.4PTRh@[^_]this is a xxx3this is a xxx2居然没有this is a xxx1, 今天踩了这个大坑, 差不多浪费0.5小时。
转载地址:http://eiwti.baihongyu.com/