Posted: Tue Mar 01, 2005 3:31 am Post subject: amqsput compile
Voyager
Joined: 25 Feb 2004 Posts: 82
I would like to re-compile the amqsput source on intel linux
so I can increase the buffer size.
The problem is, I don't know anything about c. All i've done is changed the C source buffer size in the code. I don't think I need to do anything else. Can someone confirm this??
Also, when trying to compile it, im running the following command but have no idea if im using the right options:
gcc -o mqput mqput.c
I've trying running it and get:
/tmp/ccOTGV7U.o: In function `main':
/tmp/ccOTGV7U.o(.text+0xb8): undefined reference to `MQCONN'
/tmp/ccOTGV7U.o(.text+0x212): undefined reference to `MQOPEN'
/tmp/ccOTGV7U.o(.text+0x385): undefined reference to `MQPUT'
/tmp/ccOTGV7U.o(.text+0x43b): undefined reference to `MQCLOSE'
/tmp/ccOTGV7U.o(.text+0x486): undefined reference to `MQDISC'
collect2: ld returned 1 exit status
Any idea's what I need to do?
many thanks for your help. _________________ Integration Design/Developer
IBM Certified System Administrator -
WebSphere MQ V5.3
Joined: 16 May 2001 Posts: 668 Location: Switzerland
You need to link your prog. with the MQ library, as it needs to find the MQ functions "amqsput" is calling. See Application Progamming Guide, Ch. 26 (Building your application on Linux). Add "-lmqm" to get the MQ libs.
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