24 Apr
2008
24 Apr
'08
12:26
* Bogdan Cristea (cristeab@gmail.com) [20080424 10:27]:
It seems that the functions related to semaphores are not found by the linker. Could you advise please?
CB.cpp:(.text+0x5dc): undefined reference to `sem_destroy' CB.cpp:(.text+0x5f7): undefined reference to `sem_init' CB.cpp:(.text+0x62f): undefined reference to `sem_destroy'
You need to link to libpthread i.e. add -lpthread to the compiler options. Philipp PS opensuse-programing would have been the better place top ask such questions. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org