|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Sample program - imqwrld.cpp compile error |
« View previous topic :: View next topic » |
Author |
Message
|
mqman |
Posted: Tue Mar 18, 2003 6:19 am Post subject: Sample program - imqwrld.cpp compile error |
|
|
Newbie
Joined: 14 Mar 2003 Posts: 1
|
Hi,
I have a problem with the sample program as a beginner.
Could anyone help me? I appreciate it.
CC imqwrld.o -L/home/bear/sample -L/opt/mqm/lib -L/usr/lib -o imqwrld
Undefined first referenced
symbol in file
short ImqStr::compare(const ImqStr&)const imqwrld.o
ImqStr ImqStr::upperCase()const imqwrld.o
unsigned char ImqMsg::formatIs(const char*)const imqwrld.o
unsigned char ImqObj::setOpenOptions(const long) imqwrld.o
unsigned char ImqChl::setConnectionName(const char*) imqwrld.o
unsigned char ImqChl::setHeartBeatInterval(const long) imqwrld.o
ImqChl::ImqChl() imqwrld.o
ImqMgr::ImqMgr() imqwrld.o
ImqMsg::ImqMsg() imqwrld.o
unsigned char ImqChl::setChannelName(const char*) imqwrld.o
unsigned char ImqMgr::setChannelReference(ImqChl*) imqwrld.o
unsigned char ImqObj::setName(const char*) imqwrld.o
unsigned ImqStr::cutOut(ImqStr&,const char) imqwrld.o
ImqStr ImqObj::name() imqwrld.o
unsigned char ImqQue::get(ImqMsg&) imqwrld.o
ImqStr::~ImqStr() imqwrld.o
ImqStr::ImqStr(const char*) imqwrld.o
ImqQue::ImqQue() imqwrld.o
unsigned char ImqChl::setTransportType(const long) imqwrld.o
unsigned char ImqCac::useFullBuffer(const char*,const unsigned) imqwrld.o
unsigned ImqCac::dataLength()const imqwrld.o
void ImqObj::setConnectionReference(ImqMgr*) imqwrld.o
void ImqMsg::setFormat(const char*) imqwrld.o
unsigned char ImqMgr::connect() imqwrld.o
ImqChl::~ImqChl() imqwrld.o
ImqMgr::~ImqMgr() imqwrld.o
ImqStr::ImqStr() imqwrld.o
ImqMsg::~ImqMsg() imqwrld.o
unsigned char ImqQue::put(ImqMsg&) imqwrld.o
ImqQue::~ImqQue() imqwrld.o
ld: fatal: Symbol referencing errors. No output written to imqwrld
make: *** [imqwrld] Error 1 |
|
Back to top |
|
 |
clindsey |
Posted: Tue Mar 18, 2003 7:50 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Looks like you are building this on either HP or Solaris, correct?
You have the lib paths included but you are not linking with any mq libraries. Try adding -l<linklib> to your arguments.
For solaris, add -limqb23ss -limqs23ss (if running the code on the same machine as the queue manager, i.e. server bindings. Otherwise link for
client bindings by adding -limqb23ss -limqc23ss.
For HP, server bindings add -limqb23ch -limqs23ch
and client bindings add -limqb23ch -limqc23ch
Charlie |
|
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
|
|
|
|