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/libmqcrt.so 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!
So do you mean the C library only supports 32bit application? Is that possible to get 64bit C API library?
even using -m32, I got some errors:
/usr/bin/ld: cannot find -lstdc++
Am I missing anything?
Yes, currently there is only 32-bit C-API library for Linux and 64bit libary for Linux is planned in a future release.
The C-API library has dependency on C++ runtime library libstdc++ on Linux (see the C-API Developer Guide section 'C++ Runtime Library Support').