PDA

View Full Version : illegal precompiled header version


sagemac
05-21-2003, 01:31 AM
hi everybody,

i am new to mac devlopment. i am having an application running on mac os 9 compiled by codewarrior 4.
i have to port it to mac os x, for this i am using codewarrior 8. Now when i try to open the .mcp file it tells me to convert the project. After converting when i try to compile it i get a message as "illegal precompiled header version".
i have gone nuts trying to figure it out for last two days. any help is welcome.

thanks in advance --sagemac

hayne
05-21-2003, 02:47 AM
Well, I know little about CodeWarrior development, but I just googled on the error message you gave and found a CodeWarrior document that said:

Error 10123
illegal precompiled header version

The compiler gives this error when a precompiled header file is old or defective.

Fix
Possible fixes include:

* You may need to precompile your project's precompiled header again.

* If you are using a prefix file provided by Metrowerks, you should re-build
the precompiled header projects (these include
MacHeaders.mcp, Win32Headers.mcp, and MSL-Headers.mcp).

sagemac
05-21-2003, 03:37 AM
i dont know how to precompile my projects precompiled header again. i tried to find the pch files but didnt find any also i went through all the menus of codewarrior for rebuilding those header files again.

i also rebuild the MacHeaders.mcp, Win32Headers.mcp, and MSL-Headers.mcp

but i am still stuck.

hayne
05-21-2003, 05:51 AM
I don't know CodeWarrior but there must be a way to remove all the generated files for a project. This is often called "clean". If you can't find it in the menus, just find out where these generated files (including the pre-compiled headers) are and remove them manually. Then rebuild.