Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FAQ] Re: Precompiled header problem



On Jul 11, 2006, at 2:21 AM, James Closs wrote:

I have changed the name of a header file in my project and, despite multiple cleans etc, the target seems to be referencing the old header file. I keep getting the following error:


ProcessPCH++ /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/AUDemo_Prefix-ddpdweikpgqscvgcmkgmiuubltig/AUDemo_Prefix.pch.gch AUDemo_Prefix.pch normal ppc c++ com.apple.compilers.gcc.4_0

    cd "/Volumes/docs/development/audio/DSP Library"

    /usr/bin/gcc-4.0 -x c++-header -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -g -O0 -fmessage-length=0 -mtune=G4 -fvisibility-inlines-hidden -mfix-and-continue -I/Volumes/docs/development/audio/DSP\ Library/build/dsp.build/Development/AUDemo.build/AUDemo.hmap -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -O0 -F/Volumes/docs/development/audio/DSP\ Library/build/Development -I/Volumes/docs/development/audio/DSP\ Library/build/Development/include -I/Volumes/docs/development/audio/DSP\ Library/build/dsp.build/Development/AUDemo.build/DerivedSources -c /Volumes/docs/development/audio/DSP\ Library/AUDemo_Prefix.pch -o /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/AUDemo_Prefix-ddpdweikpgqscvgcmkgmiuubltig/AUDemo_Prefix.pch.gch

powerpc-apple-darwin8-gcc-4.0.1: /Volumes/docs/development/audio/DSP Library/AUDemo_Prefix.pch: No such file or directory

powerpc-apple-darwin8-gcc-4.0.1: warning: '-x c++-header' after last input file has no effect

powerpc-apple-darwin8-gcc-4.0.1: no input files


AUDemo_Prefix.pch exists nowhere in my target. I've tried manually deleting all caches and turning off 'predictive compilation' but still get the error. Can anyone help?


The name of the precompiled header prefix is set in your Target Settings.  Changing the name of the file doesn't automatically change the setting.  (This is also true for the Info.plist file, Exported/Unexported Symbols file, Rez Prefix, and all other file- and path-based build settings).

1) Choose "Edit Current Target" from the Project menu
2) Set the popup to "All Configurations" (because you want to change this for both Debug and Release)
3) Type "Prefix" into the search panel; you should see the "Prefix File" build setting
4) Double-click the Value column and type in the new name of the file

Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Precompiled header problem (From: James Closs <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.