This discussion is archived
4 Replies Latest reply: Sep 16, 2011 12:01 PM by 886634 RSS

cannot compile C-API client : cannot find -lmqcrt

886634 Newbie
Currently Being Moderated

I'm new to message queue and am attempting to compile the sample C code. I read both the README and the introduction in

but neither mentions what "-lmqcrt" is supposed to do. The reason why I'm asking is because the compiler complains it cannot find it:

# g++ -DLINUX -D_REENTRANT -I/root/MessageQueue/mq/include/ -o Producer -L/root/MessageQueue/mq/lib/ -lmqcrt Producer.c
/usr/bin/ld: skipping incompatible /root/MessageQueue/mq/lib// when searching for -lmqcrt
/usr/bin/ld: cannot find -lmqcrt
collect2: ld returned 1 exit status

where the include folder contains the mqcrt.h and lib contains
I also added the to the PATH

Any help would be greatly appreciated, thanks!


  • Correct Answers - 10 points
  • Helpful Answers - 5 points