c++ - Adding MAKEFLAGS from MPC(The Makefile, Project, and Workspace Creator) -


i using mpc generate makefiles. generate makefile when run make following error:

error: #error file requires compiler , library support iso c++ 2011 standard. support experimental, , must enabled -std=c++11 or -std=gnu++11 compiler options.

my question is, how add build flags (eg:-std=c++11) mpc?

for completion here mpc file:

project(makefile) : dcpsexe, dcps_tcp {    requires += no_opendds_safety_profile    exename   = start    after    += *idl     typesupport_files {      communication.idl    }     source_files {      listenerreader.cpp      publisher.cpp      subscriber.cpp      main.cpp        } } 

this can done through $ace_root/include/makeinclude/platform_macros.gnu file. add line c++11=1 top of file, enable c++11 support compiler.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -