简体   繁体   中英

IBM MQGET and MQPUT

I am making a small program to put and get messages from queues. I have implemented a client version easily with no errors.

However when i attempt to make a server version i get a number of errors complaining about the MQ Calls i am using:

Error 1 error LNK2019: unresolved external symbol _MQCLOSE referenced in function "public: virtual bool __thiscall CImbMq::Disconnect(void)" (?Disconnect@CImbMq@@UAE_NXZ)

i have

#include <cmqc.h>
#include <cmqxc.h>

included and have included the MQSERIES_SRV_LIBRARIES located in my IBM/Tools/Lib64 folder

Any idea's why i continue to get these errors ?

Thanks

That linking error is telling you that it cannot resolve the MQ calls. If you have already successfully linked a client version of the application, that tells me that you do not have MQ server installation, and so the libraries for linking a server (or local bindings) version of your application, are not installed on your machine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM