Jump to content
43oh

How to change command line arguments to gcc in Energia?


Recommended Posts

How can I add a switch to the g++/gcc command line (or do something equivalent) in Energia?

 

I am importing a library (FastLED) which generates a bunch of warnings about needing 

 

 -std=c++11

 

Example warning message:

FeatureDemo.ino:655:98: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]

 

I would like to make those warnings go away (both for me, and be able to tell anyone else using the library how to make them go away).  I have hunted through the menus, through the customization file and looked at the gcc documentation (for environment variables, etc.)  So far haven't found how to either add this to the command line Energia uses to invoke gcc, or how to tell gcc to do the same thing by other means.

 

Thanks.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...