|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
compilation error on imqwrld.cpp |
« View previous topic :: View next topic » |
Author |
Message
|
bear575 |
Posted: Fri Mar 14, 2003 8:31 am Post subject: compilation error on imqwrld.cpp |
|
|
Newbie
Joined: 14 Mar 2003 Posts: 2
|
I am a beginner. I am trying to compile a sample imqwrld.cpp.
I got an error as follow;
g++ -c -o imqwrld.o imqwrld.cpp
In file included from /usr/include/imqitm.hpp:21,
from /usr/include/imqbin.hpp:21,
from /usr/include/imqobj.hpp:21,
from /usr/include/imqmgr.hpp:21,
from /usr/include/imqair.hpp:19,
from /usr/include/imqi.hpp:21,
from imqwrld.cpp:41:
/usr/include/imqerr.hpp:50: parse error before `&'
/usr/include/imqerr.hpp:50: `ImqErr::operator =(...)' must take exactly one argument
/usr/include/imqerr.hpp:73: confused by earlier errors, bailing out
make: *** [imqwrld.o] Error 1
..............................
Can anybody give me advice on this? Thanks in advance. |
|
Back to top |
|
 |
clindsey |
Posted: Fri Mar 14, 2003 10:58 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Bear575,
MQseries is a bit picky about the compilers it works with. See if you can get access to MS Visual C++ V5 or higher or the IBM VisualAge C++ compiler and give one of those a try.
Charlie |
|
Back to top |
|
 |
bear575 |
Posted: Fri Mar 14, 2003 1:10 pm Post subject: imqwrld compilation error |
|
|
Newbie
Joined: 14 Mar 2003 Posts: 2
|
You mean the sample program(imqwrld) is wrong? I tried that on Solaris(Unix). There is some reason I have to do practice MQ in Solaris. Can anyone who has had no problem with the sample program on Solaris advise? |
|
Back to top |
|
 |
mqonnet |
Posted: Fri Mar 14, 2003 1:24 pm Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
What charlie meant was the compiler is picky that did not mean imqwrld program is wrong. The program might be just fine, its to do with your compiler. Different compilers have different levels of error checking. One compiler for instance may pass a wrong type cast statement, whereas the other might error.
As for what would work on Solaris. I used gcc and it works just fine. Not sure what g++ is. Try gcc. If you have no choice but to use g++, then i would suggest you check the respective docs to resolve this.
Alternatively you could write a small C++ app yourself that has no mq api calls to test if this g++ works fine. It may work fine. Could be some library/environment variable missing.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
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
|
|
|
|