Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solaris MQSeries linking problem (undefined symbols)

Status
Not open for further replies.

venegas2001

Programmer
May 18, 2001
2
GB
Hi i'm trying to compile some simple MQSeries code and i get undefined symbols when linking.

I'm using

Sun CC 5.1
MQSeries 5.2


with the following build line which i'm pretty sure contains all the required libraries (according to ibm) :

CC -D_SOLARIS -mt -library=iostream -o mqdyn dynmq.cpp -lC -limqb23ss -limqs23ss -lmqm -lmqmcs -ldl -lnsl -lmqmzse -lsocket

i get the numerous undefined symbols at the link stage :


unsigned char ImqMsg::formatIs(const char*)const
unsigned char ImqObj::setOpenOptions(const long)
ImqMgr::ImqMgr()
ImqMsg::ImqMsg()
unsigned char ImqObj::setName(const char*)
ImqStr ImqObj::name()
unsigned char ImqQue::get(ImqMsg&)
ImqStr::~ImqStr()
ImqQue::ImqQue()
unsigned char ImqCac::useFullBuffer(const char*,const unsigned)
unsigned ImqCac::dataLength()const
void ImqObj::setConnectionReference(ImqMgr*)
void ImqMsg::setFormat(const char*)
unsigned char ImqMgr::connect()
ImqMgr::~ImqMgr()
ImqMsg::~ImqMsg()
unsigned char ImqQue::put(ImqMsg&)
ImqQue::~ImqQue()

ld: fatal: Symbol referencing errors.



Is there somthing i'm doing wrong ???

thanks in advance - Nic




 
Nic:

I had a similar problem when I ported my C++ code from AIX to solaris. It appears that the MQ libraries are missing to link with the MQ classes and its objects, even though the /usr/mqm/inc (where mq is installed) shows the hpp files. Hope this answers your question.

Would you mind sharing your C++ code for the get and the puts with me?

Thanks.
gavs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top