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 » SunSolaris compile C++ appli dont find -lmqm library!!!!!

Post new topic  Reply to topic
 SunSolaris compile C++ appli dont find -lmqm library!!!!! « View previous topic :: View next topic » 
Author Message
KAKOZ
PostPosted: Wed Apr 07, 2004 1:37 am    Post subject: SunSolaris compile C++ appli dont find -lmqm library!!!!! Reply with quote

Voyager

Joined: 26 Jan 2004
Posts: 90
Location: FRANCE

Hi,

- we try to compile a C++ mqseries sun solaris appli
- the -lmqm library is not there !!

in fact -lmqm (or -lmqic) does not exist in /opt/mqm/lib !!

where is the pb?

thanks for help
Jack
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 07, 2004 4:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

KAKOZ wrote:
where is the pb?

Right here:
KAKOZ wrote:
in fact -lmqm (or -lmqic) does not exist in /opt/mqm/lib !!

The file is not called "mqm".
Application Programming Guide: Chapter 30 - Building your application on Solaris wrote:
Linking libraries
You must link with the WebSphere MQ libraries that are appropriate for your application type:
Program/exit type
Library files

Server for C
libmqm.so, libmqmcs.so,
and libmqmzse.so

Client for C
libmqic.so, libmqmcs.so,
and libmqmzse.so

Server for C with DCE
libmqm.so, libmqmcs_d.so,
and libmqmzse.so

Client for C with DCE
libmqic.so, libmqmcs_d.so,
and libmqmzse.so



Also, please double-check that you are using a supported compiler and following these instructions:
Application Programming Guide: Chapter 30 - Building your application on Solaris wrote:
To compile, for example, the sample program amqsput0:

export LIB=/opt/mqm/lib:$LIB
Ensure the environment is set to use the correct versions of the compiler software and man pages:
export PATH=/opt/SUNWspro/bin:$PATH
export MANPATH=/opt/SUNWspro/man:/usr/man:$MANPATH
export LD_LIBRARY_PATH= \
/opt/SUNWspro/lib:/$OPENWINHOME/lib:$LD_LIBRARY_PATH

Compile the program (the order of the libraries specified is important):
cc -o <amqsput0> <amqsput0>.c -mt -lmqm -lmqmcs -lmqmzse \
-lsocket -lnsl -ldl

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
KAKOZ
PostPosted: Wed Apr 07, 2004 4:08 am    Post subject: Reply with quote

Voyager

Joined: 26 Jan 2004
Posts: 90
Location: FRANCE

** thanks a lot Jeff **
thats clear now
regards
Jack
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 API Support » SunSolaris compile C++ appli dont find -lmqm library!!!!!
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.