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
Hi,

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

http://download.oracle.com/docs/cd/E19575-01/820-6661/aelao/index.html

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//libmqcrt.so 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 libmqcrt.so
I also added the libstdc++.so to the PATH

Any help would be greatly appreciated, thanks!

Legend

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