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 » c:error cmqc.h in hp-ux

Post new topic  Reply to topic Goto page 1, 2  Next
 c:error cmqc.h in hp-ux « View previous topic :: View next topic » 
Author Message
lam
PostPosted: Mon Dec 11, 2006 7:39 am    Post subject: c:error cmqc.h in hp-ux Reply with quote

Acolyte

Joined: 09 Nov 2006
Posts: 50

I build my program in windows and I have a good execution to read queue but when I want to build the same program in HP-UX I have all this errors in file cmqc.h, so can I have a special file cmqc.h in hp-ux or they are the same in windows or unix????

cc: "../include/cmqc.h", line 2287: error 1000: Unexpected symbol: "MQINT64".
cc: "../include/cmqc.h", line 2288: error 1000: Unexpected symbol: "MQUINT64".
cc: "../include/cmqc.h", line 2288: error 1584: Inconsistent type declaration: "_int64".
cc: "../include/cmqc.h", line 2290: error 1000: Unexpected symbol: "*".
cc: "../include/cmqc.h", line 2290: error 1584: Inconsistent type declaration: "PMQLONG".
cc: "../include/cmqc.h", line 2293: error 1000: Unexpected symbol: "PPMQINT32".
cc: "../include/cmqc.h", line 2294: error 1000: Unexpected symbol: "*".
cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 11, 2006 7:48 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

IIRC from your previous posts you're using v6.0? On HP-UX?

I think you need to research the differences between 32 bit & 64 bit MQ support, and the development there to.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lam
PostPosted: Mon Dec 11, 2006 8:43 am    Post subject: Reply with quote

Acolyte

Joined: 09 Nov 2006
Posts: 50

I did'nt install websphere under HP-ux yet but I just try to compile a program which get the messages of the queue.
so I compile this program in windows but whith the same program I have error in hp-ux
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Dec 11, 2006 9:32 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can't compile without installing MQ of some sort.

You should not compile on any platform against any version of cmqc.h that is not the standard cmqc.h that is supplied with the MQ distribution.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mvic
PostPosted: Mon Dec 11, 2006 10:20 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

jefflowrey wrote:
You should not compile on any platform against any version of cmqc.h that is not the standard cmqc.h that is supplied with the MQ distribution.

Exactly. cmqc.h on HP-UX will probably be different from cmqc.h on Windows.

Also, if you get a proper MQ installation, the file should be accessed implicitly via
Code:
#include <cmqc.h>

and then the C preprocessor will find it symlinked in /usr/include. The file actually resides at /opt/mqm/inc/cmqc.h

Hope this helps
Back to top
View user's profile Send private message
tleichen
PostPosted: Mon Dec 11, 2006 12:10 pm    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

lam wrote:
I did'nt install websphere under HP-ux yet but I just try to compile a program which get the messages of the queue.
so I compile this program in windows but whith the same program I have error in hp-ux
tsk...tsk.....
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 11, 2006 11:42 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

lam wrote:
I did'nt install websphere under HP-ux yet but I just try to compile a program which get the messages of the queue.


Assuming the program had (by some miracle) compiled, how were you planning to get messages from a queue without websphere installed...?

A queue without a queue manager? Function without software? Is this some sort of Zen development?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
tleichen
PostPosted: Tue Dec 12, 2006 8:14 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

Vitor wrote:
...A queue without a queue manager? Function without software? Is this some sort of Zen development?
Yeah, I'm beginning to think there is a lot of Zen development going on these days... for one reason or another....
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
lam
PostPosted: Tue Dec 12, 2006 2:21 pm    Post subject: Reply with quote

Acolyte

Joined: 09 Nov 2006
Posts: 50

bescause I have not a websphere mq cd so I tried to compile juste a programm witch get messages and I planed to installe it when I will have cd
to day I have cd and I installed websphere mq in hp-ux and all is ok I can now put and get messages from queue thanks for your help a lot

I try now to modify the file amqsget0.c in order to treat the messages received from the queue before their posting but I do not find the difinition of functions MQCONN, MQGET, MQCLOSE… on the source files delived by websphre I just find their declaration on cmqc.h so I receive error messages .
could you indicate me where can I found the declaration of these functions????
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Dec 12, 2006 2:26 pm    Post subject: Reply with quote

Jedi Knight

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

Exactly what error messages are you getting? Is this when you are linking the program?
Are oyu using these libraries?
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/csqzal1116.htm
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
lam
PostPosted: Tue Dec 12, 2006 2:31 pm    Post subject: Reply with quote

Acolyte

Joined: 09 Nov 2006
Posts: 50

SORRY
could you indicate me where can I found the DIFINITION of these functions????
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Tue Dec 12, 2006 2:44 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Use the search button provided on the page that pops up when you click on the link you were given.

But the calls will not work until you install MQ
Back to top
View user's profile Send private message
mvic
PostPosted: Tue Dec 12, 2006 2:47 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

lam wrote:
could you indicate me where can I found the DIFINITION of these functions????

Check out the link that Wayne posted. The answer to your question is complicated because there are so many environments to choose from. But in short, the answer is: in files named something like libmqm.sl or libmqm_r.sl (for server-bound apps) and libmqic.sl or libmqic_r.sl (for client-bound apps).
Back to top
View user's profile Send private message
tleichen
PostPosted: Tue Dec 12, 2006 7:49 pm    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

lam wrote:
could you indicate me where can I found the DIFINITION of these functions????
uhh.... what functions???
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
lam
PostPosted: Wed Dec 13, 2006 1:04 am    Post subject: Reply with quote

Acolyte

Joined: 09 Nov 2006
Posts: 50

hi,
I use all lib that exist in /opt/mqm/lib but I have this message when I make my programme(amqsget0.c) :
Unsatisfied symbols:
MQPUT1 (code)
MQGET (code)
MQINQ (code)
MQOPEN (code)
MQDISC (code)
MQCLOSE (code)
MQCONN (code)
MQXCNVC (code)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ API Support » c:error cmqc.h in hp-ux
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.