I am trying to build a sample code using Eclipse and ARM Sourcery Windows GCC C on Windows 8 machine. When I compile code : I get this error :
Undefined reference to symbol 'sem_post@@GLIBC_2.4
The error doesn't say any line number or any location about the error, so I don't know which part of the code I should post. How can I get rid of this error? Thanks.
sem_post()
lives in the pthread library, so make sure you use the -pthread
flag when compiling and linking.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With