cancel
Showing results for 
Search instead for 
Did you mean: 

How do I properly add a defined string via a build configuration in STVD?

tergu
Associate II

I would like to something like this in the build configuration:

#define DEFTEXT "some_string"

This is the relevant section of the cxstm8 manual:

-d*> define symbol

...

-d*^

specify * as the name of a user-defined preprocessor symbol (#define). The form of the definition is

-dsymbol[=value]; the symbol is set to 1 if value is omitted.

You can specify up to 60 such definitions.

I tried all kinds of variations but I could not get it to work. Anyone knows how it is done?

Cosmic proposed:

-dDEFTEXT=\\\�?singleword\\\�?

-d�?\�?DEFTEXT=\\\�?a short string\\\�?\�?�?

When I enter this in the additional options box it gets changed to the following:

"-dDEFTEXT=\\\singleword\\\"

"-d\DEFTEXT=\\\a short string\\\\"

Best regards,

Christian.

0 REPLIES 0