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 » Sample program - imqwrld.cpp compile error

Post new topic  Reply to topic
 Sample program - imqwrld.cpp compile error « View previous topic :: View next topic » 
Author Message
mqman
PostPosted: Tue Mar 18, 2003 6:19 am    Post subject: Sample program - imqwrld.cpp compile error Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Tue Mar 18, 2003 7:50 am    Post subject: Reply with quote

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
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 » General Discussion » Sample program - imqwrld.cpp compile error
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.