Compliation Error when Qt use Mqueue
-
Headers and cpp files that compiles successfully is extracted from codeSourcery and inserted into Qt creator IDE. I am using message queue (MQueue)
Compiler error is as below:
make: *** No rule to make target CMsgQ.cc', needed byCMsgQ.o'. Stop.CMsgQ.o: undefined reference to symbol 'mq_send@@GLIBC_2.3.4'
error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status -
Hi,
Can you show your project pro file ?
-
QT += core gui
QT += widgets
QT += network
QT +=gui
QT +=gui declarative
QT += xml
---------------------------------------------------------.cc file -----------------
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <errno.h>error:
strerror was not declared in this scope
memcpy was not declared in this scope -
No
SOURCE += CMsgQ.cc
? -
Are you linking to librt ?
-
win32:LIBS += -lrt