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 » IBM MQ API Support » imqsgetc -compilation with diff name., different behavior

Post new topic  Reply to topic
 imqsgetc -compilation with diff name., different behavior « View previous topic :: View next topic » 
Author Message
pratima_09
PostPosted: Mon May 08, 2006 9:47 am    Post subject: imqsgetc -compilation with diff name., different behavior Reply with quote

Novice

Joined: 05 May 2006
Posts: 13

Hello,

I was successfully able to use the binary imqsgetc from sample programs(bin) to connect to a remote queue manager and write to the queue .

I want to modify imqsget.cpp to put in some extra options for my client program. So I just copied imqsget.cpp to myProgram.C ( a C++ file) and compiled myProgram.C successfully on my HP-UX box.

But, when I execute the corresponding binary, ImqQueueManager::connect failed with reason code 2058. Surprisingly, if I run imqsgetc with the same arguments, everything is fine.

Should I be setting some additional options in my Makefile??

Thanks
Pratima
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon May 08, 2006 9:59 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Did you specify that you needed to bind against the mq CLIENT libraries? Or did you bind agains the mq SERVER libraries?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
pratima_09
PostPosted: Mon May 08, 2006 10:08 am    Post subject: imqsgetc -compilation with diff name., different behavior Reply with quote

Novice

Joined: 05 May 2006
Posts: 13

These are the libraries I have used:

-limqi23ah -lmqm -lmqic

Do I need to include some other libraries??

-Pratima
Back to top
View user's profile Send private message
wschutz
PostPosted: Mon May 08, 2006 10:20 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.amqzan.doc/amqzan09179.htm

If you want a CLIENT version of the module, do NOT use -lmqm
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
pratima_09
PostPosted: Mon May 08, 2006 10:27 am    Post subject: imqsgetc -compilation with diff name., different behavior Reply with quote

Novice

Joined: 05 May 2006
Posts: 13

oh ok.. Thanks! It works now.

-Pratima
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 » IBM MQ API Support » imqsgetc -compilation with diff name., different behavior
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.