Author |
Message
|
HaseebJunaid |
Posted: Thu Aug 23, 2001 12:54 pm Post subject: |
|
|
Newbie
Joined: 22 Aug 2001 Posts: 6 Location: Michigan
|
When I try to compile sample code in unix on HPUX using cc, I get the following error message "Unsatisfied symbols":
MQGET (code)
MQOPEN (code)
MQDISC (code)
MQCLOSE (code)
MQCONN (code)
Any ideas on how to compile this? The include file is in the include directory. Maybe I need to use a library while compiling it. Any suggestions are greatly appreciated. |
|
Back to top |
|
 |
bduncan |
Posted: Thu Aug 23, 2001 4:34 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Haseeb,
Check out the following link. It lists the parameters you are supposed to pass to cc and the linker for various platforms including HPUX:
http://www-4.ibm.com/software/ts/mqseries/library/manuals99/amqzan/amqzan1n.htm#Table_3
If you are still having difficulties let me know. But I think you are not including the appropriate library that contains the MQI functions...
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
opmind |
Posted: Tue Dec 18, 2001 6:36 am Post subject: |
|
|
Acolyte
Joined: 04 Dec 2001 Posts: 68
|
I've got the same problem when I try to compile a sample under visio c/c++ 6.0 on win2k platform ...
Can someone help me ?
Tx,
Cyril |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Jan 17, 2002 12:32 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Is your error with the compile or with the link? It looks to me like it is with the link which probably means that you didn't include the necessary library files. It has been a while since I used MSVC, but I do remember that you had to work your way through various panels to specify the libraries and their paths. You can always test your system from the command line with something like:
cl -MT -Z7 -c -W1 -D_X86=1 -DWIN32 prog.c
link -OUT:prog.exe prog.obj e:mqseriestoolslibmqm.lib
|
|
Back to top |
|
 |
mrlinux |
Posted: Fri Feb 15, 2002 9:18 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Well on HPUX add following to the end of your cc statement
For Server apps -lmqm
For Client apps -lmqic |
|
Back to top |
|
 |
|