Connected libraries:
#include <pthread.h> #include <mqueue.h> Netbeans allows you to use functions from the included libraries when writing code, but when building it produces messages:
- undefined reference to `mq_open '
- undefined reference to `mq_receive '
- undefined reference to `mq_close '
- undefined reference to `pthread_create '
Not completing the build project.
In the "library" section of the linker, adding from the standard libraries "Posix execution threads" questions to <pthread.h> disappear. But how to solve the problem with <mqueue.h> ?
-pthreadand-lrtflags will help - diraria