|Visual Studio 2017 CrossCompile [message #1795347]
||Thu, 20 September 2018 17:15
| Davizuco Davizuco
Registered: September 2018
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'...
Waiting for the connection...
MQTT error [-1]: TCP/TLS connect failure
Powered by FUDForum
. Page generated in 0.01875 seconds