05-16-2017 06:40 AM
I'm trying to port c++ application from visual studio to petalinux during which the following questions have raised:
1) Do the following includes supported:
#include <mutex> #include <thread>
Because I got the following error: "This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options?
2) Where do I set the flag -std=c++11? I have tried in the makefile that petalinux tools provide:
CPPFLAGS += -std=c++11 (failure).
05-16-2017 10:40 PM
greatgehar, thank you for the reply.
I am compiling with the petalinux command-line tools (petalinux-build -c myapp) not with the XSDK.
Are you familiar with the syntax that is to be used with the petalinux provide makefile?
05-17-2017 06:59 AM
I have seen the same errors and found that they didn't make a difference. The compiler defaults to c++11.
I have also added this to the Makefile for myapp:
CFLAGS := $(CFLAGS) -std=c++11