- 论坛徽章:
- 0
|
谢谢,autoconf有点问题,用手工方法可以build了,但是仍然很多错误
g++ -fvisibility=hidden -fvisibility-inlines-hidden -w -O2 -g -DHPUX_VERS=1123
-DACE_HAS_THREADS -D_POSIX_C_SOURCE=199506L -I/home/diameter/gcc-install/ACE
_wrappers -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I.. -DACE_HAS_ACE_TOKEN -DACE_
HAS_ACE_SVCCONF -DACE_BUILD_DLL -c -fPIC -o .shobj/Based_Pointer_Repository.o B
ased_Pointer_Repository.cpp
Based_Pointer_Repository.cpp:132: error: duplicate explicit instantiation of \'ACE_Singleton<ACE_Based_Pointer_Repository, ACE_RW_Thread_Mutex>* ACE_Singleton<ACE_Based_Pointer_Repository, ACE_RW_Thread_Mutex>::singleton_\'
查看Based_Pointer_Repository.cpp:
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Singleton <ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX>;
template class ACE_Map_Entry<void *, size_t>;
template class ACE_Map_Manager<void *, size_t, ACE_Null_Mutex>;
template class ACE_Map_Iterator<void *, size_t, ACE_Null_Mutex>;
template class ACE_Map_Reverse_Iterator<void *, size_t, ACE_Null_Mutex>;
template class ACE_Map_Iterator_Base<void *, size_t, ACE_Null_Mutex>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Singleton <ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX>
#pragma instantiate ACE_Map_Entry<void *, size_t>
#pragma instantiate ACE_Map_Manager<void *, size_t, ACE_Null_Mutex>
#pragma instantiate ACE_Map_Iterator<void *, size_t, ACE_Null_Mutex>
#pragma instantiate ACE_Map_Reverse_Iterator<void *, size_t, ACE_Null_Mutex>
#pragma instantiate ACE_Map_Iterator_Base<void *, size_t, ACE_Null_Mutex>
#elif defined (__GNUC__) && (defined (_AIX) || defined (__hpux) || defined (VXWORKS))
template ACE_Singleton<ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX> *
ACE_Singleton<ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
这种显式实例化不被支持?如果是的话,我应该用什么版本?或者aCC?
我的版本是ACE5.5, gcc4.0.2 for HP-UX IA64 11.23
谢了先 |
|