|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SunSolaris compile C++ appli dont find -lmqm library!!!!! |
« View previous topic :: View next topic » |
Author |
Message
|
KAKOZ |
Posted: Wed Apr 07, 2004 1:37 am Post subject: SunSolaris compile C++ appli dont find -lmqm library!!!!! |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Apr 07, 2004 4:03 am Post subject: |
|
|
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 |
|
 |
KAKOZ |
Posted: Wed Apr 07, 2004 4:08 am Post subject: |
|
|
Voyager
Joined: 26 Jan 2004 Posts: 90 Location: FRANCE
|
** thanks a lot Jeff **
thats clear now
regards
Jack |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|