4 Replies Latest reply on Sep 16, 2011 7:01 PM by 886634

    cannot compile C-API client : cannot find -lmqcrt


      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//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!