On 07/11/2017 12:30 PM, Natalia Theologou wrote: > Hello all, > > > I am following the template of iotivity-simple-client inside recipes-apps in > order to bitbake my custom simple server and simple client. > > The client succeeds in bitbaking but the server has the errors:
Two errors below... > Log data follows: > | DEBUG: Executing shell function do_compile > | NOTE: make -j 1 -e MAKEFLAGS= > | arm-poky-linux-gnueabi-g++ -march=armv7-a -mthumb-interwork > -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 -Wl,-O1 -Wl,--hash-style=gnu > -Wl,--as-needed > --sysroot=/home/natalia/Downloads/release-bsp/build/tmp/sysroots/imx6dlsabreauto > -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden > -c -o nickserver.o nickserver.cpp > | In file included from > /home/natalia/Downloads/release-bsp/build/tmp/sysroots/imx6dlsabreauto/usr/include/c++/mutex:35:0, > | from nickserver.cpp:34: > | > /home/natalia/Downloads/release-bsp/build/tmp/sysroots/imx6dlsabreauto/usr/include/c++/bits/c++0x_warning.h:32:2: > error: #error This file requires compiler and library support for the ISO > C++ 2011 standard. This support is currently experimental, and must be > enabled with the -std=c++11 or -std=gnu++11 compiler options. > | #error This file requires compiler and library support for the \ > | ^ You say --std=c++0x is in the makefile, but it's not for the target in question... as you can see from the build line above. From your snip, you have it inline in the rule for nickserveroff.o only, but that's not what it is building - that's nickserver.o. So you must be using a gcc version which defaults to gnu++98 since it defaults to an older version. and the other error: > | nickserver.cpp:38:19: fatal error: OCApi.h: No such file or directory > | #include <OCApi.h> something isn't right with the include paths, either, if it's not finding OCAPI.h. (that line should probably have the header name in quotes rather than in brackets, as it's a project-local include, not a system header) _______________________________________________ iotivity-dev mailing list [email protected] https://lists.iotivity.org/mailman/listinfo/iotivity-dev
