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 IBM MQ Support » unable to execute the sample AMQSPUT0.c

Post new topic  Reply to topic
 unable to execute the sample AMQSPUT0.c « View previous topic :: View next topic » 
Author Message
s-r-i
PostPosted: Mon Aug 08, 2005 3:59 am    Post subject: unable to execute the sample AMQSPUT0.c Reply with quote

Novice

Joined: 03 Aug 2005
Posts: 17

i have compiled the amqsput0.c program but while executing the output of the compiled program using the following syntax
gcc -Wall -lmqic amqsput0.c

./a.out QM1.LOCAL.1 QM1
where QM1.LOCAL.1 is the local queue name and QM1 is the queue manager name.

i am getting an error of
2058 0x0000080a MQRC_Q_MGR_NAME_ERROR

but if i run the program from the bin directory using amqsput command, im able to put the value into the queue specified. how to compile and execute the amqsput0.c program???please help

[/b]
Back to top
View user's profile Send private message
Nigelg
PostPosted: Mon Aug 08, 2005 4:39 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

You have built your app with the client library -lmqic, not the server library -lmqm.

The procedure for building an executable program is in the APG manual.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Mon Aug 08, 2005 4:44 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

what plattform? you may have heard that there are different kinds of computers.

is the way you compiled the program the recommended way described in the application programmers guide?

are you sure you want to use the client library?
_________________
Regards, Butcher
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 IBM MQ Support » unable to execute the sample AMQSPUT0.c
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.