gcc -g -o test test.o -L/xxx/shlib -lxxx_data #-lstdc++
test.o:(.eh_frame+0x11):对‘__gxx_personality_v0’未定义的引用
collect2: ld returned 1 exit status
test.o:(.eh_frame+0x11):对‘__gxx_personality_v0’未定义的引用
collect2: ld returned 1 exit status
加上-lstdc++编译成功
或者改成g++编译
g++ -g -o test test.o -L/xxx/shlib -lxxx_data