Topic : How to use Options->Project->RC51->Defines?

Forum : Ride IDE

Original Post
Post Information Post
December 2, 2008 - 1:33pm
Guest

Hi,

I like my application to compile conditionally.

I thought if I declare somewhere:
#define MYDEFINE
I could use
#ifdef MYDEFINE

but I do not seem to manage to achieve this using the Options->Project->RC51->Defines window.
If I write down:
DEFINE(MYDEF) or DEFINE(MYDEF=1)
or something alike the compiler complains:
FATAL ERROR IN COMMAND LINE: Identifier expected

what do I do wrong?

Thanks

Henk

Replies
Post Information Post
+1
0
-1
December 2, 2008 - 3:00pm
Guest

Hi

Actually the good combinaison is MYDEF=1.
One more thing that might be useful to know about the use of this option is that:
If you use define "Options->Project->RC51->Defines" it will apply to all source files in the project excepted those having at least one "local option"
the files with a red dot in the project view.

Matloub