Error when running Paho MQTT C Client in Windows for x64 [message #1725859] |
Tue, 08 March 2016 01:57 |
Eclipse User |
|
|
|
Hi All
I am using Paho MQTT C client for windows (https://eclipse.org/paho/clients/c/).
I am using the prebuilt binaries. I tried a simple example (IDE used: Visual Studio Express 2013) in Win32 platform to connect to the broker and it works well.
But If I change the platform of the project in Visual Studio Express 2013 to x64 it throws up the linker error as follows:
1>mqtt_Test.obj : error LNK2019: unresolved external symbol MQTTClient_create referenced in function main
1>mqtt_Test.obj : error LNK2019: unresolved external symbol MQTTClient_connect referenced in function main
1>mqtt_Test.obj : error LNK2019: unresolved external symbol MQTTClient_disconnect referenced in function main
1>mqtt_Test.obj : error LNK2019: unresolved external symbol MQTTClient_publishMessage referenced in function main
1>mqtt_Test.obj : error LNK2019: unresolved external symbol MQTTClient_waitForCompletion referenced in function main
1>mqtt_Test.obj : error LNK2019: unresolved external symbol MQTTClient_destroy referenced in function main
Note: All the paths (include and lib) and Linker-->input are configured properly under x64 configuration.
Do I need to recompile the Paho MQTT C client source for x64 to generate the required DLL? Or is there any other way out for making this work.
Thanks
Amey
|
|
|
Powered by
FUDForum. Page generated in 0.07579 seconds