Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Error when running Paho MQTT C Client in Windows for x64
Error when running Paho MQTT C Client in Windows for x64 [message #1725859] Tue, 08 March 2016 06:57
Amey Pandit is currently offline Amey PanditFriend
Messages: 3
Registered: March 2016
Junior Member
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
Previous Topic:Java client with websocket : Invalid Frame : Opcode 15 error
Next Topic:Upcoming Virtual IoT meetup about mqtt-spy
Goto Forum:
  


Current Time: Sun Sep 23 11:52:23 GMT 2018

Powered by FUDForum. Page generated in 0.01962 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top