|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Compiling C++ sample programs |
« View previous topic :: View next topic » |
Author |
Message
|
spoimala |
Posted: Tue Feb 19, 2002 3:17 am Post subject: |
|
|
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 |
|
 |
StefanSievert |
Posted: Tue Feb 19, 2002 2:16 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
|
Back to top |
|
 |
gijohnson |
Posted: Mon Mar 04, 2002 1:05 pm Post subject: |
|
|
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 |
|
 |
StefanSievert |
Posted: Mon Mar 04, 2002 1:45 pm Post subject: |
|
|
 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 |
|
 |
looloo |
Posted: Thu May 30, 2002 2:05 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|