Here is my transcript. I have a macro called CFCLog defined in a header file that is included in my pch. This is the transcript with an offending implementation file compiled:
ProcessPCH /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/CFC_Prefix-amynsknlcmvdmpainsrgxxihsmsp/CFC_Prefix.pch.gch CFC_Prefix.pch normal ppc objective-c com.apple.compilers.gcc.3_3 mkdir /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/CFC_Prefix-amynsknlcmvdmpainsrgxxihsmsp cd /Users/byronwright/Projects/CFC/src/GUI setenv MACOSX_DEPLOYMENT_TARGET 10.3 setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk /usr/bin/gcc-3.3 -x objective-c-header -arch ppc -pipe -Wno-trigraphs -fobjc-exceptions -fpascal-strings -fasm-blocks -g -O0 -Wformat -fmessage-length=0 -ffix-and-continue -mtune=G4 -Wp,-header-mapfile,/Users/byronwright/Projects/CFC/src/GUI/build/CFC.build/Debug/CFC.build/CFC.hmap -F/Users/byronwright/Projects/CFC/src/GUI/build/Debug -F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks -I/Users/byronwright/Projects/CFC/src/GUI/build/Debug/include -I/Users/byronwright/projects/CFC/src/GUI -I/Developer/SDKs/MacOSX10.3.9.sdk/usr/include -I/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/libxml2 -I/Users/byronwright/Projects/CFC/src/GUI/build/CFC.build/Debug/CFC.build/DerivedSources -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include -c /Users/byronwright/Projects/CFC/src/GUI/CFC_Prefix.pch -o /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/CFC_Prefix-amynsknlcmvdmpainsrgxxihsmsp/CFC_Prefix.pch.gch
CompileC build/CFC.build/Debug/CFC.build/Objects-normal/ppc/CFCQuickTimeUtils.o utils/CFCQuickTimeUtils.m normal ppc objective-c com.apple.compilers.gcc.3_3 mkdir /Users/byronwright/Projects/CFC/src/GUI/build/CFC.build/Debug/CFC.build/Objects-normal/ppc cd /Users/byronwright/Projects/CFC/src/GUI setenv MACOSX_DEPLOYMENT_TARGET 10.3 setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk /usr/bin/gcc-3.3 -x objective-c -arch ppc -pipe -Wno-trigraphs -fobjc-exceptions -fpascal-strings -fasm-blocks -g -O0 -Wformat -fmessage-length=0 -ffix-and-continue -mtune=G4 -Wp,-header-mapfile,/Users/byronwright/Projects/CFC/src/GUI/build/CFC.build/Debug/CFC.build/CFC.hmap -F/Users/byronwright/Projects/CFC/src/GUI/build/Debug -F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks -I/Users/byronwright/Projects/CFC/src/GUI/build/Debug/include -I/Users/byronwright/projects/CFC/src/GUI -I/Developer/SDKs/MacOSX10.3.9.sdk/usr/include -I/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/libxml2 -I/Users/byronwright/Projects/CFC/src/GUI/build/CFC.build/Debug/CFC.build/DerivedSources -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include -include /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/CFC_Prefix-amynsknlcmvdmpainsrgxxihsmsp/CFC_Prefix.pch -c /Users/byronwright/Projects/CFC/src/GUI/utils/CFCQuickTimeUtils.m -o /Users/byronwright/Projects/CFC/src/GUI/build/CFC.build/Debug/CFC.build/Objects-normal/ppc/CFCQuickTimeUtils.o
Ld /Users/byronwright/Projects/CFC/src/GUI/build/Debug/CFC.app/Contents/MacOS/CFC normal ppc mkdir /Users/byronwright/Projects/CFC/src/GUI/build/Debug/CFC.app/Contents/MacOS cd /Users/byronwright/Projects/CFC/src/GUI setenv MACOSX_DEPLOYMENT_TARGET 10.3 setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk /usr/bin/gcc-3.3 -o /Users/byronwright/Projects/CFC/src/GUI/build/Debug/CFC.app/Contents/MacOS/CFC -L/Users/byronwright/Projects/CFC/src/GUI/build/Debug -L/Users/byronwright/projects/CFC/src/GUI -L/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib -L/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/darwin/3.3 -F/Users/byronwright/Projects/CFC/src/GUI/build/Debug -F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks -filelist /Users/byronwright/Projects/CFC/src/GUI/build/CFC.build/Debug/CFC.build/Objects-normal/ppc/CFC.LinkFileList -framework AppKit -framework Carbon -framework Cocoa -framework CoreServices -framework QTKit -framework QuickTime -arch ppc -prebind -lxslt -lxml2 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk ld: warning NEXT_ROOT environment variable ignored because -syslibroot specified ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _CFCLog
On Jun 13, 2005, at 3:40 PM, Chris Espinosa wrote: On Jun 13, 2005, at 3:31 PM, Byron Wright wrote: After upgrading from Xcode 2.0 -> 2.1 I am getting some strange behavior with the preprocessor and pre-compiled headers. In my pch header file I am including a header file that contains some #defines. In my implementation files the #defines don't seem to be going through the preprocessor and I have to specifically import the header file before the preprocessor will pick them up. This used to work fine in 2.0, what has changed and how can I fix this?
BTW, I am cross-compiling on the 10.3.9 SDK using gcc 3.3.
Could you open up your build transcript, copy the ProcessPCH line and the CompileC line for one of the implementation files, and post them here so we can take a look?
Chris
|