Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Visual Studio 2017 CrossCompile(Problems with asynchronous example.)
Visual Studio 2017 CrossCompile [message #1795347] Thu, 20 September 2018 17:15
Davizuco Davizuco is currently offline Davizuco DavizucoFriend
Messages: 1
Registered: September 2018
Junior Member
Hi all,

I'm new using cross compilation, and not skilled in linux development, so, I`m sorry if it's a stupid question.

I'm trying to build async_publish.cpp example with Visual Studio 2017 and a RaspberryPi 3B+ (Centos 7).

I always have liker errors like:

------------------------------ (reference not defined)
main.cpp(163): error : referencia a `mqtt::async_client::async_client(std::string const&, std::string const&, mqtt::iclient_persistence*)' sin definir
main.cpp(166): error : referencia a `mqtt::async_client::set_callback(mqtt::callback&)' sin definir
...



  • I've tested VS Blink sample without any trouble, added breakpoints.. etc.
  • Both pahoc and pahocpp was built in linux also docs and samples
  • I've tested lib references with "ldconfig -v", all looks ok (remember I'm noob)


Launched cpp async_publish fom linux console, no local broker instaled, so all looks as expected:
[root@raspberry samples]# ./async_publish
Initializing for server 'tcp://localhost:1883'...
  ...OK

Connecting...
Waiting for the connection...
MQTT error [-1]: TCP/TLS connect failure



Any ideas?
Previous Topic:Wants to create multiple connections without too many threads
Next Topic:Memory leaks in openssl
Goto Forum:
  


Current Time: Wed Oct 28 10:54:26 GMT 2020

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

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

Back to the top