>Subject: Compile Time Definitions in CW
>From: Igor Mozolevsky <[EMAIL PROTECTED]>
>Date: Thu, 05 Jul 2001 18:03:51 +0100
>
>I've been searching for days now, still can't find where I can find how to 
>#define to have it across all files in a project without physically put it 
>in every single file, like gcc -DDEF_VAR_1 type thing...

CW has a very different approach to this than VC++ and Borland's
compilers.  Their apporach works, but takes a little getting used to!

Create a header file with your #define statements, and then refer
to it in your source code.

Creater multiple versions of the same header file, with the same
name but in different directories  (ex: DEBUG and RELEASE)
for different settings of the #define's

Make sure the build process picks up the correct header file.




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to