Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » error adding symbols: file format not recognized[(Linking Mosquitto Library)
error adding symbols: file format not recognized[ [message #1861182] Tue, 26 September 2023 15:42 Go to next message
Antonio Eli is currently offline Antonio EliFriend
Messages: 1
Registered: September 2023
Junior Member

I have installed Mosquitto using vcpkg.
I am linking the library in the cmakelists.txt file shown in the image.

when I build my project when I reference mosquitto_lib_init();, i get this error:
error adding symbols: file format not recognized

When i remove mosquitto_lib_init();, the build is successful as shown in the image.

Any idea why this is?
Re: error adding symbols: file format not recognized[ [message #1861204 is a reply to message #1861182] Thu, 28 September 2023 23:59 Go to previous message
Roger Light is currently offline Roger LightFriend
Messages: 90
Registered: September 2013
Member
Hi,

At first glance it looks like you are mixing compiling for ARM with packages that have been compiled for x86, which of course won't work. I'm not familiar with vcpkg so can't say much more than that.

Regards,

Roger
Previous Topic:MQTT - SSL Connection to test.mosquitto.org:8883
Next Topic:Could any help with acl file settings?
Goto Forum:
  


Current Time: Thu May 02 15:00:42 GMT 2024

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

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

Back to the top