cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to define a constant in compile time to be used by a configuration - not working

Caio Gubel
Associate II

I created a configuration called "Release" and inside it I defined under C/C++ General --> Paths and Symbols a symbol following the advice from several "google" searches but when I try to use it inside a file like:

#[if defined(_RELEASE_MODE_)]​ 

...some code

#endif​ 

it failed in compilation time as the symbol was not recognized. Any hint?

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 REPLY 1
Erwan YVIN
ST Employee

Hello Caio ,

You should do that in the platform settings in your compilation options

-D_RELEASE_MODE_

Best regards

Erwan