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:

  1. undefined reference to `mq_open '
  2. undefined reference to `mq_receive '
  3. undefined reference to `mq_close '
  4. 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> ?

  • Perhaps compilation with the -pthread and -lrt flags will help - diraria

0