yi顽童
2014-03-19 06:35linux 链接动态库时产生如下错误
g++ ADS_APIServer.o ../../udt/src/libudt.so ../Commlib/libCommlib.so libADS_APIServer.so -o ADS_APIServer
ADS_APIServer.o: In function soapOpenThread(void*)':
pthread_create'
ADS_APIServer.cpp:(.text+0x8b0): undefined reference to
ADS_APIServer.o: In function main':
pthread_create'
ADS_APIServer.cpp:(.text+0xd85): undefined reference to
ADS_APIServer.cpp:(.text+0xdb1): undefined reference to pthread_create'
pthread_create'
ADS_APIServer.cpp:(.text+0xddd): undefined reference to
ADS_APIServer.cpp:(.text+0xe09): undefined reference to pthread_create'
pthread_create' follow
ADS_APIServer.o:ADS_APIServer.cpp:(.text+0xe38): more undefined references to
../../udt/src/libudt.so: undefined reference to pthread_mutex_trylock'
pthread_mutexattr_settype'
../Commlib/libCommlib.so: undefined reference to
../../udt/src/libudt.so: undefined reference to pthread_key_create'
dlsym'
../Commlib/libCommlib.so: undefined reference to
../Commlib/libCommlib.so: undefined reference to dlerror'
pthread_getspecific'
../../udt/src/libudt.so: undefined reference to
../Commlib/libCommlib.so: undefined reference to pthread_mutexattr_destroy'
pthread_mutexattr_init'
../Commlib/libCommlib.so: undefined reference to
../../udt/src/libudt.so: undefined reference to pthread_key_delete'
dlopen'
../Commlib/libCommlib.so: undefined reference to
../../udt/src/libudt.so: undefined reference to pthread_setspecific'
dlclose'
../Commlib/libCommlib.so: undefined reference to
../../udt/src/libudt.so: undefined reference to `pthread_join'
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- linux 下java调用dll
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 0个回答