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 IBM MQ Support » A FAQ from compiled MQ Application in AIX5.1

Post new topic  Reply to topic
 A FAQ from compiled MQ Application in AIX5.1 « View previous topic :: View next topic » 
Author Message
hazard
PostPosted: Thu Nov 24, 2005 12:26 am    Post subject: A FAQ from compiled MQ Application in AIX5.1 Reply with quote

Newbie

Joined: 16 Nov 2005
Posts: 8

the makefile just like following:

# define base dir
MQM_HOME=/usr/mqm

# define
DEFINES=-DDEBUG -DUNIX -D_PTHREAD_SAFE

LDFLAGS=-L$(MQM_HOME)/lib -limqb23ia_r -limqs23ia_r

CFLAGS=-g -q64 $(DEFINES) -qchars=signed -I/usr/mqm/inc $(LDFLAGS) \
-bhalt:8 -bloadmap:ldout

# command
CC=xlC_r

.SUFFIXES: .o .cpp

.cpp.o:
$(CC) $(CFLAGS) -o $*.o -c $*.cpp

# target
mqput:imqsput.o
touch imqsput.cpp
sleep 1
$(CC) $(CFLAGS) -o $@ $?

the file imqsput.cpp is the MQ's example.

and the following are the errors when i compiled it:

ld: 0711-317 ERROR: Undefined symbol: ImqMgr::virtual-fn-table-ptr-table
ld: 0711-317 ERROR: Undefined symbol: .ImqMgr::ImqMgr()
ld: 0711-317 ERROR: Undefined symbol: ImqQue::virtual-fn-table-ptr-table
ld: 0711-317 ERROR: Undefined symbol: .ImqQue::ImqQue()
ld: 0711-317 ERROR: Undefined symbol: ImqMsg::virtual-fn-table-ptr-table
ld: 0711-317 ERROR: Undefined symbol: .ImqMsg::ImqMsg()
ld: 0711-317 ERROR: Undefined symbol: .ImqStr::ImqStr(const char*)
ld: 0711-317 ERROR: Undefined symbol: .ImqStr::ImqStr()
ld: 0711-317 ERROR: Undefined symbol: .ImqChl::ImqChl()
ld: 0711-317 ERROR: Undefined symbol: .ImqChl::setHeartBeatInterval(int)
ld: 0711-317 ERROR: Undefined symbol: .ImqStr::cutOut(ImqStr&,char)
ld: 0711-317 ERROR: Undefined symbol: .ImqChl::setChannelName(const char*)
ld: 0711-317 ERROR: Undefined symbol: .ImqStr::upperCase() const
ld: 0711-317 ERROR: Undefined symbol: .ImqStr::~ImqStr()
ld: 0711-317 ERROR: Undefined symbol: .ImqChl::setTransportType(int)
ld: 0711-317 ERROR: Undefined symbol: .ImqChl::setConnectionName(const char*)
ld: 0711-317 ERROR: Undefined symbol: .ImqMgr::setChannelReference(ImqChl*)
ld: 0711-317 ERROR: Undefined symbol: .ImqObj::setName(const char*)
ld: 0711-317 ERROR: Undefined symbol: .ImqMgr::connect()
ld: 0711-317 ERROR: Undefined symbol: .ImqObj::setOpenOptions(int)
ld: 0711-317 ERROR: Undefined symbol: .ImqObj::open()
ld: 0711-317 ERROR: Undefined symbol: .ImqCac::useEmptyBuffer(const char*,unsign
ed long)
ld: 0711-317 ERROR: Undefined symbol: .ImqMsg::setFormat(const char*)
ld: 0711-317 ERROR: Undefined symbol: .ImqCac::setMessageLength(unsigned long)
ld: 0711-317 ERROR: Undefined symbol: .ImqQue::put(ImqMsg&)
ld: 0711-317 ERROR: Undefined symbol: .ImqObj::close()
ld: 0711-317 ERROR: Undefined symbol: .ImqMgr::disconnect()
ld: 0711-317 ERROR: Undefined symbol: .ImqMsg::~ImqMsg()
ld: 0711-317 ERROR: Undefined symbol: .ImqQue::~ImqQue()
ld: 0711-317 ERROR: Undefined symbol: .ImqMgr::~ImqMgr()
ld: 0711-317 ERROR: Undefined symbol: .ImqStr::compare(const ImqStr&) const
ld: 0711-317 ERROR: Undefined symbol: .ImqObj::setConnectionReference(ImqMgr*)
ld: 0711-344 See the loadmap file ldout for more information.
make: 1254-004 The error code from the last command is 8.

what can i do with these errors?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Nov 24, 2005 6:36 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Is this a double-post?
http://www.mqseries.net/phpBB2/viewtopic.php?t=25668

Please don't do that.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
hazard
PostPosted: Thu Nov 24, 2005 6:05 pm    Post subject: Reply with quote

Newbie

Joined: 16 Nov 2005
Posts: 8

mquseless wrote:
Do you have a 64-bit MQ on your system, i.e. MQ v6?
You are trying to build a 64-bit application with the -q64 flag.


Yes, I am wanting to build 64-bit application.And the version of MQ is 5.3.
Isn't it support for 64-bit?
Back to top
View user's profile Send private message
hazard
PostPosted: Thu Nov 24, 2005 6:06 pm    Post subject: Reply with quote

Newbie

Joined: 16 Nov 2005
Posts: 8

jefflowrey wrote:
Is this a double-post?
http://www.mqseries.net/phpBB2/viewtopic.php?t=25668

Please don't do that.


O, I am sorry!
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 IBM MQ Support » A FAQ from compiled MQ Application in AIX5.1
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.