ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » amqsput compile

Post new topic  Reply to topic
 amqsput compile « View previous topic :: View next topic » 
Author Message
dp111443
PostPosted: Tue Mar 01, 2005 3:31 am    Post subject: amqsput compile Reply with quote

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
Back to top
View user's profile Send private message
dgolding
PostPosted: Tue Mar 01, 2005 4:02 am    Post subject: Reply with quote

Yatiri

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.

gcc -o mqput mqput.c -lmqm

HTH
Back to top
View user's profile Send private message Visit poster's website
dp111443
PostPosted: Tue Mar 01, 2005 4:20 am    Post subject: Reply with quote

Voyager

Joined: 25 Feb 2004
Posts: 82

thought it was something silly..just did't have any idea what it was.

Thats brill!


many thanks!
_________________
Integration Design/Developer

IBM Certified System Administrator -
WebSphere MQ V5.3
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » amqsput compile
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.