that's not really sufficient, since a bunch of compiler/linker settings need
to be different as well (a couple quick examples - in a debug build you
don't want optimizations, and in a release build, you don't want symbols).
i've answered how to do this, a few times over the past couple weeks (i
can't remember if it was on this alias, or on news.massena.com, though).
----- Original Message -----
From: "Richard Burmeister" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 09, 2000 12:26 PM
Subject: Re: conditional compilation
> If I understood your question correctly, you could use conditional
defines,
> e.g.:
>
> #ifdef DEBUG
> // conditional code goes here, for example...
> MsgBox(debugMsg);
> #endif
>
> Then just add
>
> #define DEBUG
>
> at the start of your program to compile the debug version or take it out
to
> compile the release version.
>
> ----- Original Message -----
> From: "Jun-Kiat Lam" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, January 07, 2000 5:27 PM
> Subject: Re: conditional compilation
>
>
> > In CodeWarrior you would need to use separate targets for debug and
> release
> > builds, instead of debug flags ala makefiles. Create a new target
(select
> > from the Project menu), clone the existing target and you can set the
new
> > target to have its own settings, optimization levels, etc. etc. for
> > debugging purposes. If necessary, you can also have different sources.
> >
> > Rgds,
> > Jun-Kiat Lam
> > Metrowerks Technical Support
> >
> > ----- Original Message -----
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, December 30, 1999 8:18 PM
> > Subject: conditional compilation
> >
> >
> > > How do I add conditional compliation flags to code warrior. I know
how
> > > to do it in the makefile: -DDEBUG. How do i do this in CW.
> > >
> >
> >
> >
>
>