I use a different prefix header file for each target. You can set up the 
prefix file in C/C++ Language panel. This file will get included with every 
source file in your target.

e.g., I use a Debug.h for my debug target. This file defines __DEBUG.

Hope this helps.

-Sugho-


>From: "Meyer, Will" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Re : #defines in CW IDE targets
>Date: Fri, 8 Oct 1999 11:51:57 -0400
>
>Thanks Eric.  Is there no way to just add the definitions themselves to the
>list of standard ones the compiler applies without involving the precomiled
>headers, as you can in VC++?  I will go the pch route, just seems a little
>overkill ;-)
>
>Thaks again,
>
>Will
>
>-----Original Message-----
>From: Eric VERGNAUD [mailto:[EMAIL PROTECTED]]
>Sent: Friday, October 08, 1999 10:54 AM
>To: [EMAIL PROTECTED]
>Subject: Re : #defines in CW IDE targets
>
>
>In the C/C++ control panel, you can set a precompiled header to use for 
>each
>target. You can create this precompiled header with a file like this:
>
>AddressBook.pch
>
>#pragma precompile_target "AddressHeaders"
>
>#define DEBUG 0
>
>#include "AddressHeaders.h"
>
>Add this file to your project, and set the precompiled header to
>AddressHeaders
>
>If you have 2 targets, like AddressBook and AddressBookDebug, use 2
>different .pch files:
>
>AddressBookDebug.pch
>
>#pragma precompile_target "AddressHeadersDebug"
>
>#define DEBUG 1
>
>#include "AddressHeaders.h"
>
>--
>Eric Vergnaud
>
>President of Street Soft
>
>----------
> >De�: "Meyer, Will" <[EMAIL PROTECTED]>
> >� : "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Objet�: #defines in CW IDE targets
> >Date�: Ven 8 oct 1999 16:14
> >
>
> > Forgive the rather simplistic question, but where can you set
> > target-specific preprocessor definitions in the CW IDE?  I'd like to 
>have
> > certain things #defined for certain target settings (as in DEBUG and the
> > like).  I am sure there is a way to do this in CW like in every other 
>IDE,
> > just haven't found it.  Can someone point me in the right direction?
> >
> > Best Regards,
> >
> > Will Meyer
> >
> >
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

Reply via email to