Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Building the C++ API/samples

Hi Frank,

trying to build the C++ samples on my RedHat workstation, I get the output included below. At least the first one is presumably due to the older version of gcc installed (4.4.7-3) - I haven't looked at the rest yet. But the version of gcc installed on at least one of the Eclipse build servers is older than that (4.3.4).

Should/could we have a solution for pre C++11 compilers?

Ian

g++ -I.. -I../../../org.eclipse.paho.mqtt.c/src -D_NDEBUG -Wall -std=c++0x -O2 -o async_publish async_publish.cpp -L../lib -L../../../org.eclipse.paho.mqtt.c/src/linux_ia64 -lmqttpp -lmqttv3a
In file included from ../mqtt/token.h:32,
from ../mqtt/async_client.h:31,
from async_publish.cpp:23:
../mqtt/exception.h:73: error: expected ‘;’ before ‘noexcept’
../mqtt/exception.h:76: error: expected ‘;’ before ‘}’ token
In file included from ../mqtt/async_client.h:31,
from async_publish.cpp:23:
../mqtt/token.h: In member function ‘bool mqtt::token::wait_until_completion(const std::chrono::time_point<_Clock, _Duration1>&)’:
../mqtt/token.h:315: error: expected primary-expression before ‘[’ token
In file included from ../mqtt/async_client.h:35,
from async_publish.cpp:23:
../mqtt/connect_options.h: In constructor ‘mqtt::connect_options::connect_options()’: ../mqtt/connect_options.h:63: error: could not convert ‘{{'M', 'Q', 'T', 'C'}, 2, 60, 1, 10, 0l, 0l, 0l, 30, 20, 0l, 0l, 0, 0l}’ to ‘MQTTAsync_connectOptions’
async_publish.cpp: In function ‘void sleep(int)’:
async_publish.cpp:38: error: ‘sleep_for’ is not a member of ‘std::this_thread’
async_publish.cpp: In function ‘int main(int, char**)’:
async_publish.cpp:143: error: ‘nullptr’ was not declared in this scope





Back to the top