Posted: Wed Feb 04, 2004 7:37 am Post subject: compile problems on solaris
Newbie
Joined: 04 Feb 2004 Posts: 7
Hi,
I'm trying to compile the example program amqscnxc.c which links in cmqc.h and cmqxc.h on solaris.
I've compiled a fair few of the examples no problem but this one throws a rather wierd error. Here's the command i used to compile and the error i recieved (there was a whole lot more afterwards but all related to there being no definition for MQCD which is what this bit of code does.
ukdrsgpi007# gcc -O -I.. -I/opt/mqm/inc -c amqscnxc.c
In file included from amqscnxc.c:3:
cmqxc.h:406: parse error before `MQBYTE40'
cmqxc.h:406: warning: no semicolon at end of struct or union
cmqxc.h:407: warning: data definition has no type or storage class
cmqxc.h:408: warning: data definition has no type or storage class
cmqxc.h:409: parse error before `*'
cmqxc.h:409: warning: data definition has no type or storage class
Well it compiles all of the other test programs fine.
I can also use the MQCONNX command happily as long as I don't use the MQCD structure that is provided in the file cmqxc.c . The annoying thing is, that's the bit I want to use as I need to connect to a specific queue manager in a cluster and that's the only way I can think of doing it.
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