Author |
Message
|
lam |
Posted: Mon Dec 11, 2006 7:39 am Post subject: c:error cmqc.h in hp-ux |
|
|
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 |
|
 |
Vitor |
Posted: Mon Dec 11, 2006 7:48 am Post subject: |
|
|
 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 |
|
 |
lam |
Posted: Mon Dec 11, 2006 8:43 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Dec 11, 2006 9:32 am Post subject: |
|
|
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 |
|
 |
mvic |
Posted: Mon Dec 11, 2006 10:20 am Post subject: |
|
|
 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
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 |
|
 |
tleichen |
Posted: Mon Dec 11, 2006 12:10 pm Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Mon Dec 11, 2006 11:42 pm Post subject: |
|
|
 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 |
|
 |
tleichen |
Posted: Tue Dec 12, 2006 8:14 am Post subject: |
|
|
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 |
|
 |
lam |
Posted: Tue Dec 12, 2006 2:21 pm Post subject: |
|
|
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 |
|
 |
wschutz |
Posted: Tue Dec 12, 2006 2:26 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
lam |
Posted: Tue Dec 12, 2006 2:31 pm Post subject: |
|
|
Acolyte
Joined: 09 Nov 2006 Posts: 50
|
SORRY
could you indicate me where can I found the DIFINITION of these functions???? |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Dec 12, 2006 2:44 pm Post subject: |
|
|
 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 |
|
 |
mvic |
Posted: Tue Dec 12, 2006 2:47 pm Post subject: |
|
|
 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 |
|
 |
tleichen |
Posted: Tue Dec 12, 2006 7:49 pm Post subject: |
|
|
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 |
|
 |
lam |
Posted: Wed Dec 13, 2006 1:04 am Post subject: |
|
|
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 |
|
 |
|