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
>
> 

Reply via email to