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 Installation/Configuration Support » compiling amqsput.c

Post new topic  Reply to topic
 compiling amqsput.c « View previous topic :: View next topic » 
Author Message
4d1in3
PostPosted: Tue Apr 09, 2013 7:03 pm    Post subject: compiling amqsput.c Reply with quote

Newbie

Joined: 09 Apr 2013
Posts: 4

I'm new to MQ. I'm trying to compile amqsget0.c file for testing purpose with slight modification.
But whenever it try to connect to the Queue, it returns with an error

<02:17:16>Successfully connected to MQ Queue Manager QMGR
<02:17:16>MQ Open to Queue QNME
Failed with reason code 8667514137712 (printing reason code returned from MQCONN.)

for compiling -
cc -g -q64 -qcpluscmt -c amqsget0.c
cc -g -q64 -qcpluscmt amqsget0.o -L/usr/mqm/lib64 -lmqm_r -o amqsget

But my friend was able to compile the same thing and the executable is working properly in my machine.

my machine
dspmqver
Name: WebSphere MQ
Version: 7.5.0.0

his machine
dspmqver
Name: WebSphere MQ
Version: 7.0.0.0


Can anyone point if I'm missing anything while compiling? or any pointer where I should check? Or I have missed any configuration?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Apr 10, 2013 4:31 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Looks like your byte size is different. He may use a different compiler. The MQ reason code is a 4-digit number starting with 2, such as 2085.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Apr 10, 2013 4:49 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'm not sure what platform you're trying to build on... ?

For linux on MQ 7.5, a 64-bit app should be compiled using the methods listed here.

For other platforms, there are similar pages that provide specific compiler commands.

None of the 7.5 documented commands match yours...
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed Apr 10, 2013 6:58 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

Code:
<02:17:16>Successfully connected to MQ Queue Manager QMGR
<02:17:16>MQ Open to Queue QNME
Failed with reason code 8667514137712 (printing reason code returned from MQCONN.)

amqsget0.c doesn't produce any output like that !

What line of code is printing "Failed with...." ?

ReasonCode should be declared as MQLONG on all platforms (32 & 64 bit) and printed using "%d" format.
_________________
Glenn
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 Installation/Configuration Support » compiling amqsput.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.