I'm trying to pass in a macro define to the command line to define the level of code being used. Something like

gcc -o objname.o source.c -DFIXLVL=\"FEB 17 2006\"

the code does something like:
static const char mszFixLvl[] = " " __FILE__ " at " FIXLVL " on " __DATE__ " at " __TIME__ " ";

so the value of FIXLVL must have quotes at the time preprocessing begins and cannot have been stripped off by ant, cpptasks, or any other thing in between.

I'm using cpptasks 1.0b3, ant 1.6.5.

I've tried
<defineset><define name="FIXLVL" value="&quot;FEB 17 2006&quot;"/></defineset>

and

<compilerarg value="-D"/><compilerarg value="FIXLVL=&quot;FEB 17 2006&quot;"/>

I've even tried defining the fix level in a property, and then using the property name in the defineset value, but it was too smart for that.

How can I force this thing to listen to me?

Thanks,
Ben


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to