This discussion is archived
9 Replies Latest reply: Feb 15, 2011 7:17 PM by 840093 RSS

OpenMQ CClient problem in 64bit Redhat linux: incompatible

807581 Newbie
Currently Being Moderated

I installed OpenMQ4.4 in Redhat Enterprise 5, just follow the instructions.

The java example works fine. While I received below errors when I was trying to compile Producer.C.

$sudo g++ -DLINUX -D_REENTRANT -I$IMQ_HOME/mq/include -o Producer -L$IMQ_HOME/mq/lib -lmqcrt Producer.c

/usr/bin/ld: skipping incompatible /usr/local/MessageQueue/mq/lib/ when searching for -lmqcrt
/usr/bin/ld: cannot find -lmqcrt
collect2: ld returned 1 exit status

The machine is 64bit. gcc version 4.1.2

Anyone knows what's wrong?

Thanks very much!