I've been on eScribe, and I still don't get it.  How 
do I use precompiled headers?  (From what I understand,
they are basically put at the top of every compiled file.)

I made a file called "Config.pch".  I added this file to
BuildHeaders.mcp.  I built that project to make "Config"
(using #pragma precompile_target "Config" in Config.pch).
I then put this into the C/C++ Language Prefix File spot.

Compiling with that, I now get about a zillon errors about
things not being defined.  What am I doning wrong?

Todd.

My Config.h:

#ifdef CONFIG_H
#define CONFIG_H

#define DEMO 0
#define COLOR 1

// To override certain build options, modify this file or create your own 
copy of it,
// and do something like the following to customize the #define options...
//
//#include <BuildDefines.h>
//#define ERROR_CHECK_LEVEL ERROR_CHECK_PARTIAL

// Include the Palm OS public header files

#include <BuildDefines.h>
#define ERROR_CHECK_LEVEL ERROR_CHECK_FULL
#define DO_NOT_ALLOW_ACCESS_TO_INTERNALS_OF_STRUCTS
#include <PalmOS.h>

#pragma precompile_target "Config"

#endif

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

Reply via email to