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 » IBM MQ API Support » Compiling C++ sample programs

Post new topic  Reply to topic
 Compiling C++ sample programs « View previous topic :: View next topic » 
Author Message
spoimala
PostPosted: Tue Feb 19, 2002 3:17 am    Post subject: Reply with quote

Novice

Joined: 05 Feb 2002
Posts: 10

When I try to build the sample programs, I get linker errors:
MQManager error LNK2001: unresolved external symbol "public: unsigned char __thiscall ImqMgr::disconnect(void)" (?disconnect@ImqMgr@@$$FQAEEXZ)

and

MQManager error LNK2001: unresolved external symbol "public: unsigned char __thiscall ImqQue::put(class ImqMsg &)" (?put@ImqQue@@$$FQAEEAAVImqMsg@@@Z)

and many others. Why?
Maybe I should add some DLLs or something to my project, but what?
Back to top
View user's profile Send private message Send e-mail
StefanSievert
PostPosted: Tue Feb 19, 2002 2:16 pm    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

You need to include the MQ C++ libraries in you linker input. Check out Appendix A of the manual MQSeries using C++ at http://www-4.ibm.com/software/ts/mqseries/library/manualsa/amqzan05/amqzan05tfrm.htm
Cheers,
Stefan

_________________
Stefan Sievert
IBM Certified * MQSeries

[ This Message was edited by: StefanSievert on 2002-02-19 14:16 ]
Back to top
View user's profile Send private message
gijohnson
PostPosted: Mon Mar 04, 2002 1:05 pm    Post subject: Reply with quote

Newbie

Joined: 03 Mar 2002
Posts: 3
Location: US-Indiana

How exactly do you do what is stated in Appendix A:

If you are using the Microsoft Visual C++ Version 4.x or 5.0 compiler, use the
following switches and libraries:
Switches
cl -MD
Libraries
imqb23vn imq{c|s}23vn
Note: {c|s} denotes that you must enter either ‘c’ for a client application or ‘s’ for
a server application.

I am new to Visual C++ but I have plenty on MQ experience on the mainframe utilizing COBOL.

Thanks,

_________________
Glenn I. Johnson
www.yougetpaid.org
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
StefanSievert
PostPosted: Mon Mar 04, 2002 1:45 pm    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Glenn,
I only used VC++ 6.0 so the information might not apply, but:
In the 'Project' menu, select 'Settings'. This opens a dialog where you can specify all compiler and linker options. Select the Tab 'Linker' or 'Link' and find the entry fields for 'Additional Libraries' and 'Additional Library Path' and enter the names of the MQ libraries and the path where they can be found.
This is off the top of my head, let me know if you can't find it and I'll see if I can get you some screen shots.
Cheers,
Stefan

_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
looloo
PostPosted: Thu May 30, 2002 2:05 am    Post subject: Reply with quote

Novice

Joined: 27 May 2002
Posts: 11

Hi,

I'm using VC++ 6.0 too and I've link problems.
it seems that for the project setting we just have to
add "/MD" option.
for the lib include (I'm trying to do a client)
I've added the two libs (imqb23vn.lib, imqc23vn.lib) but I've still
links problems :

unresolved external symbol
"public: virtual __thiscall ImqErr::~ImqErr(void)"
"public: virtual __thiscall ImqMgr::~ImqMgr(void)"
"public: __thiscall ImqMgr::ImqMgr(void)"

is there others lib to include ?
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 » IBM MQ API Support » Compiling C++ sample programs
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.