分页: 1 / 1

编译ACE问题求助

发表于 : 周一 9月 20, 2010 8:34 am
tigeroar
环境:QNX 6.5 gcc-4.4.2

g++ -fexceptions -finline-functions -fvisibility=hidden -fvisibility-inlines-hidden -pipe -W -Wall -Wpointer-arith -gdwarf-2 -I/home/tigeroar/software/ACE_wrappers -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I../../.. -fexceptions -Wl,-E -L/home/tigeroar/software/ACE_wrappers/lib -L. -L../../../lib -o Start_Hook .obj/Start_Hook.o -lACE -lsocket -lstdc++ -lm

错误:
.obj/Start_Hook.o: In function `~ACE_TSS':
/home/tigeroar/software/ACE_wrappers/ace/TSS_T.cpp:44: undefined reference to `ACE_TSS_C_cleanup'
/home/tigeroar/software/ACE_wrappers/ace/TSS_T.cpp:44: undefined reference to `ACE_TSS_C_cleanup'
.obj/Start_Hook.o: In function `ACE_TSS<SecurityContext>::ts_init()':
/home/tigeroar/software/ACE_wrappers/ace/TSS_T.cpp:116: undefined reference to `ACE_TSS_C_cleanup'
collect2: ld returned 1 exit status

but exec
nm ../../../lib/libACE.so | grep ACE_TSS_C_cleanup
result:
$ nm ../../../lib/libACE.so | grep ACE_TSS_C
00107748 t ACE_TSS_C_cleanup

谢谢1