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 » General Discussion » MQSeries Sample Code Compiling problem

Post new topic  Reply to topic
 MQSeries Sample Code Compiling problem « View previous topic :: View next topic » 
Author Message
HaseebJunaid
PostPosted: Thu Aug 23, 2001 12:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
bduncan
PostPosted: Thu Aug 23, 2001 4:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
opmind
PostPosted: Tue Dec 18, 2001 6:36 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Jan 17, 2002 12:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
mrlinux
PostPosted: Fri Feb 15, 2002 9:18 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MQSeries Sample Code Compiling problem
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.