25 Apr
2008
25 Apr
'08
18:22
On Thursday 2008-04-24 14:26, Philipp Thomas wrote:
* 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.
Original mail was sent to Cc. You stripped that out :p -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org