|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
C++ Problems |
« View previous topic :: View next topic » |
Author |
Message
|
scanner |
Posted: Thu Sep 04, 2003 12:32 am Post subject: C++ Problems |
|
|
Apprentice
Joined: 10 Jul 2001 Posts: 28 Location: Germany
|
I want compile the sample programs and always the following errors:
--------------------Konfiguration: n1 - Win32 Debug--------------------
Linker-Vorgang läuft...
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: static void __cdecl ImqErr::operator delete(void *)" (??3ImqErr@@SAXPAX@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqMgr::disconnect(void)" (?disconnect@ImqMgr@@QAEEXZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqObj::close(void)" (?close@ImqObj@@QAEEXZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqQue::put(class ImqMsg &)" (?put@ImqQue@@QAEEAAVImqMsg@@@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqCac::setMessageLength(unsigned int)" (?setMessageLength@ImqCac@@QAEEI@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: void __thiscall ImqMsg::setFormat(char const *)" (?setFormat@ImqMsg@@QAEXPBD@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqCac::useEmptyBuffer(char const *,unsigned int)" (?useEmptyBuffer@ImqCac@@QAEEPBDI@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqObj::open(void)" (?open@ImqObj@@QAEEXZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqObj::setOpenOptions(long)" (?setOpenOptions@ImqObj@@QAEEJ@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqMgr::connect(void)" (?connect@ImqMgr@@QAEEXZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqObj::setName(char const *)" (?setName@ImqObj@@QAEEPBD@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqMgr::setChannelReference(class ImqChl *)" (?setChannelReference@ImqMgr@@QAEEPAVImqChl@@@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqChl::setConnectionName(char const *)" (?setConnectionName@ImqChl@@QAEEPBD@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqChl::setTransportType(long)" (?setTransportType@ImqChl@@QAEEJ@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual __thiscall ImqStr::~ImqStr(void)" (??1ImqStr@@UAE@XZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: class ImqStr __thiscall ImqStr::upperCase(void)const " (?upperCase@ImqStr@@QBE?AV1@XZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqChl::setChannelName(char const *)" (?setChannelName@ImqChl@@QAEEPBD@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned int __thiscall ImqStr::cutOut(class ImqStr &,char)" (?cutOut@ImqStr@@QAEIAAV1@D@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: unsigned char __thiscall ImqChl::setHeartBeatInterval(long)" (?setHeartBeatInterval@ImqChl@@QAEEJ@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: __thiscall ImqChl::ImqChl(void)" (??0ImqChl@@QAE@XZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: static void * __cdecl ImqErr::operator new(unsigned int)" (??2ImqErr@@SAPAXI@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: __thiscall ImqStr::ImqStr(void)" (??0ImqStr@@QAE@XZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: __thiscall ImqStr::ImqStr(char const *)" (??0ImqStr@@QAE@PBD@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: __thiscall ImqMsg::ImqMsg(void)" (??0ImqMsg@@QAE@XZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: __thiscall ImqQue::ImqQue(void)" (??0ImqQue@@QAE@XZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: __thiscall ImqMgr::ImqMgr(void)" (??0ImqMgr@@QAE@XZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: short __thiscall ImqStr::compare(class ImqStr const &)const " (?compare@ImqStr@@QBEFABV1@@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: void __thiscall ImqObj::setConnectionReference(class ImqMgr *)" (?setConnectionReference@ImqObj@@QAEXPAVImqMgr@@@Z)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual __thiscall ImqErr::~ImqErr(void)" (??1ImqErr@@UAE@XZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual __thiscall ImqMgr::~ImqMgr(void)" (??1ImqMgr@@UAE@XZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual __thiscall ImqQue::~ImqQue(void)" (??1ImqQue@@UAE@XZ)
n1.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual __thiscall ImqMsg::~ImqMsg(void)" (??1ImqMsg@@UAE@XZ)
n1.exe : fatal error LNK1120: 32 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
n1.exe - 33 Fehler, 0 Warnung(en)
do i need link special libaries? I USE MS Visual C++ 6 |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Sep 04, 2003 1:06 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
C++ uses different libraries than C. Here is a bat file that I use to compile:
cl -MT %1.cpp imqb23vn.lib imqs23vn.lib
rem server imqs23vn.lib
rem client imqc23vn.lib |
|
Back to top |
|
 |
jonevu |
Posted: Wed Sep 24, 2003 3:05 pm Post subject: |
|
|
Newbie
Joined: 30 Jul 2003 Posts: 3 Location: Chicago, Illinois
|
scanner:
What libraries do you compile with for C code? _________________ Certified MQ Series Expert
Certified C++ Expert
datasensellc@attglobal.net |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Sep 25, 2003 9:56 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
mqm.lib is for bindings. mqic32.lib is for client.
cl -MT -Z7 -c -W1 -D_X86=1 -DWIN32 %1.c
link -OUT:%1.exe %1.obj c:\wmq\tools\lib\mqm.lib
cl -MT -Z7 -c -W1 -D_X86=1 -DWIN32 %1.c
link -OUT:%1.exe %1.obj c:\wmq\tools\lib\mqic32.lib |
|
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
|
|
|
|