LINUX.ORG.RU

Помогите побороть ld


0

0

Подскажите, плз, что бы это могло быть, в своем файле tcptarget.cpp вызываю ф-цию pthread_join (<pthread.h> ессно вкючен), компилится нормально, а ld выдает такую херню: Debug/tcptarget.o(.text+0x107): In function `CTcpTargetManager::~CTcpTargetManager [not-in-charge]()': protocols_stack/tcp/tcptarget.cpp:44: undefined reference to `pthread_join' Debug/tcptarget.o(.text+0x187): In function `CTcpTargetManager::~CTcpTargetManager [in-charge]()': protocols_stack/tcp/tcptarget.cpp:44: undefined reference to `pthread_join' Debug/tcptarget.o(.text+0x207): In function `CTcpTargetManager::~CTcpTargetManager [in-charge deleting]()': protocols_stack/tcp/tcptarget.cpp:44: undefined reference to `pthread_join'

при том, что на другие ф-ции из pthread.h не ругается (pthread_create и проч.).

И что такое [not-in-charge], [in-charge], [in-charge deleting] ?

anonymous

use -lpthread

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.