FC8下编译ACE5.6有人顺利成功吗?
我遇到了这种错误,请问是怎么回事?GNUmakefile: /home/gprs_capture/THIRD_PART/ACE/ACE_wrappers/examples/APG/Shared_Memory/GNUmakefile.Shared_Memory_Hash_Map MAKEFLAGS=w -- buildbits=32
g++ -fvisibility=hidden -fvisibility-inlines-hidden -W -Wall -Wpointer-arith -m32 -O3 -g -pipe -pipe -DACE_HAS_LINUX_NPTL -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -I/home/gprs_capture/THIRD_PART/ACE/ACE_wrappers -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I../../..-c -o .obj/Hash_Map.o Hash_Map.cpp
g++ -fvisibility=hidden -fvisibility-inlines-hidden -W -Wall -Wpointer-arith -m32 -O3 -g -pipe -pipe -DACE_HAS_LINUX_NPTL -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -I/home/gprs_capture/THIRD_PART/ACE/ACE_wrappers -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I../../..-m32 -Wl,-E -L/home/gprs_capture/THIRD_PART/ACE/ACE_wrappers/ace -L./ -L/home/gprs_capture/THIRD_PART/ACE/ACE_wrappers/lib -L. -L../../../lib -o Hash_Map .obj/Hash_Map.o -lACE -ldl -lpthread -lrt
.obj/Hash_Map.o: In function `ACE_Based_Pointer_Basic':
/home/gprs_capture/THIRD_PART/ACE/ACE_wrappers/ace/Based_Pointer_T.cpp:64: undefined reference to `ACE_Singleton<ACE_Based_Pointer_Repository, ACE_RW_Thread_Mutex>::instance()'
/home/gprs_capture/THIRD_PART/ACE/ACE_wrappers/ace/Based_Pointer_T.cpp:64: undefined reference to `ACE_Singleton<ACE_Based_Pointer_Repository, ACE_RW_Thread_Mutex>::instance()'
/home/gprs_capture/THIRD_PART/ACE/ACE_wrappers/ace/Based_Pointer_T.cpp:64: undefined reference to `ACE_Singleton<ACE_Based_Pointer_Repository, ACE_RW_Thread_Mutex>::instance()'
/home/gprs_capture/THIRD_PART/ACE/ACE_wrappers/ace/Based_Pointer_T.cpp:64: undefined reference to `ACE_Singleton<ACE_Based_Pointer_Repository, ACE_RW_Thread_Mutex>::instance()'
/home/gprs_capture/THIRD_PART/ACE/ACE_wrappers/ace/Based_Pointer_T.cpp:64: undefined reference to `ACE_Singleton<ACE_Based_Pointer_Repository, ACE_RW_Thread_Mutex>::instance()'
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/gprs_capture/THIRD_PART/ACE/ACE_wrappers/examples/APG/Shared_Memory'
make: *** Error 2 似乎只要涉及了ShardMemory的测试都编译不通过,是ACE的问题还是Linux的问题? ShardMemory有个开关选项。你关闭试试,看那个安装文档。 这个问题解决了吗?
我在编译Share_memory的时候,也遇要这个问题了。
.obj/PI_Malloc.o: In function `ACE_Based_Pointer_Basic':
/home/cyliu/project/src/ACE_wrappers/ace/Based_Pointer_T.cpp:64: undefined reference to `ACE_Singleton<ACE_Based_Pointer_Repository, ACE_RW_Thread_Mutex>::instance()'
collect2: ld 返回 1
为什么呢?
怎么解决呢
页:
[1]