Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How can I use c++11 instead of c++14

$
0
0

@jeraymond wrote:

Hello,

I'm using open of_v0.9.8_linuxarmv7l and wish to explicitly usec++11 instead of c++14. When I build a project I see it uses c++14

g++ -c -O3 -DNDEBUG -Wall -std=c++14 ...

I tried adding -std=c++11 to my config.make:

PROJECT_CFLAGS = -std=c++11

However this seems to append the new flag at the end of the build command and now both -std=c++14 and -std=c++11 are defined:

g++ -c -O3 -DNDEBUG -Wall -std=c++14 -DGCC_HAS_REGEX ... -DOF_USING_MPG123 -std=c++11

The -std=c++14 must be getting added by somewhere higher up outside of my app. How can I configure open frameworks to use c++11 globally?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929