I think I know what is going on here. A look at PalmOS.pch shows that it is
trying to define the target location for the precompiled headers using Mac
OS-style pathnames i.e.
#if EMULATION_LEVEL == EMULATION_NONE
#pragma precompile_target ":Obj:PalmOS_Headers" // Mac OS-style pathnames
#else
#pragma precompile_target ":Obj:PalmOS_Headers_Sim" // Mac OS-style
pathnames
#endif
Previously CW on Windows used to use Mac OS-style paths for such things as
defining the precompiled header path and access paths. However, as part of
the de-Mac-izing of Windows CW, one of the things that occurred in R6 was
that CW now uses Windows native pathnames (c:\program files\metrowerks). I
didn't dig too deeply but if you change the #pragma precompile_target to use
a Windows pathname it should work. Note that you have to change both targets
(simulator and device) or the compiler will continue to give you the error.
You could do something like:
#if EMULATION_LEVEL == EMULATION_NONE
#pragma precompile_target "Obj/PalmOS_Headers" // now Windows-native paths
#else
#pragma precompile_target "Obj/PalmOS_Headers_Sim"
#endif
Hope this helps.
Rgds,
Jun-Kiat Lam
Metrowerks Technical Support
----- Original Message -----
From: "Doug Fields" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, March 21, 2000 6:41 PM
Subject: Precompiled Headers after migrating to 3.5 SDK
> Hello all,
>
> I recently migrated my build environment to the SDK 3.5 from the one sent
> with CW R6 on Windows.
>
> However, despite following the directions in the Stationary, I am unable
to
> get precompiled headers to work on my C++ project.
>
> When I add the PalmOS.pch file, it compiles it fine but says:
>
> Error : ### Error while creating precompiled headerfile (OSErr -120) ###
> Project: Abologna.mcp, Target: Abologna, Source File: PalmOS.pch
>
> It does this if I add the file in the Incs dir to my project or another
copy
> of it in my source tree to my project.
>
> As that file isn't built, the "PalmOS_Headers" prefix file doesn't work
> either, so nothing compiles.
>
> Without these precompiled headers, my build takes (not quite, but close)
> forever. It has to run through over 200,000 lines of headers each file to
be
> compiled, and it greatly slows things down.
>
> Does anyone have any suggestions for getting Precompiled Headers to work
> with 3.5 and a C++ project?
>
> Thanks,
>
> Doug
>
> Here is the note from the PalmOS.pch file:
>
> * To use precompiled headers, add this file to your application project,
> * and add the output filename ("PalmOS_Headers" for device builds, or
> * "PalmOS_Sim_Headers" for simulator builds) to the "Prefix File" field
> * of the "C/C++ Language" project settings panel.
>
>
>
>
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html