|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Compilation problems with MQI and gcc |
« View previous topic :: View next topic » |
Author |
Message
|
Mir |
Posted: Thu Jan 02, 2003 5:04 am Post subject: Compilation problems with MQI and gcc |
|
|
Newbie
Joined: 02 Jan 2003 Posts: 1
|
Hello,
I need to know how compile a c++ program that use MQSeries (5.2) library on Solaris. I use gcc compiler (2.95.2). I attempt to compile one of sample programs. Here is what I get from the compiler.
$ gcc -D_REENTRANT -o imqtest imqwrld.cpp -lthread -limqb23ss
-limqs23ss -lmqm -lmqmcs -lmqmzse -lsocket -lnsl -ldl
In file included from /usr/include/imqitm.hpp:24,
from /usr/include/imqbin.hpp:24,
from /usr/include/imqi.hpp:24,
from imqwrld.cpp:41:
/usr/include/imqerr.hpp:53: parse error before `&'
/usr/include/imqerr.hpp:53: `ImqErr::operator =(...)' must take exactly one argument
/usr/include/imqerr.hpp:67: confused by earlier errors, bailing out
Thanks,
Mir |
|
Back to top |
|
 |
dgolding |
Posted: Fri Jan 03, 2003 3:50 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
AFAIK (it may have changed since last I looked) GCC is not a supported MQ C++ API compiler. The libraries that contain the MQ classes supplied by IBM, have been compiled with a different compiler, so the function names and stuff have had their names mangled a different way, so even if you get it to compile, it will never link.
http://publibfp.boulder.ibm.com/epubs/html/csqzal06/csqzal06tfrm.htm
talks about the "official" Solaris C++ compiler ONLY.
HTH |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|