Ben Combee <[EMAIL PROTECTED]> wrote in news:109677@palm-dev-forum:
>
> At 22:51 2003-1-18 -0800, you wrote:
>
>>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.
>
> Did you put "Config.pch" or "Config" in the prefix setting?
"Config", but I also tried "Config.pch".
>
>>Compiling with that, I now get about a zillon errors about
>>things not being defined. What am I doing wrong?
>
> I'm not sure. The body of "Config.pch" you provided looked OK, since
> it seemed to be based on existing files like "PalmOS.win.pch". A
> quick note: most CW precompiled headers are output with a .mch
> extension. PalmSource's SDK's use of an extensionless file isn't
> traditional, although it is allowed. Verify that you have a file
> called "Config" out on your disk, and that it is set as the prefix
> file for your target.
>
I changed the precompile_target to "Config.mch" and it made a file named
"Config", just like before. This is set as the prefix file ("Config").
The errors seem pretty strange. I've got 29 source files, and all the
errors happen in the files that don't handle a form. (ie, the 14 source
files with support code.) 8 of the support source files didn't have
#include <PalmOS.h> at the top, I just added it and reduced the number
of errors from 800+ to 150+ and the number of files with errors dropped
by 6 (these files didn't need the header included before). (I added the
resource includes to the Config.pch.) About all of the errors are with
UInt8/16/32 and resource defines. Again, this doesn't happen in all the
files in which these things are used.
Todd.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/