On Sep 16, 2005, at 2:34 PM, Yves Poissant wrote:
In a project where I have like 10 dylib to
build, they all use the same precompiled header. For the 3 first dylib, all
goes fine but for the 4th, I get an error that says about the precompile
header : "No such file or directory".
I checked the precompiled header for all the
projects from the build results and the path is exactly the same for all. It
looks like the precompiled header disapears after a while.
What should I do to keep my precompiled headers
for ever?
Is it actually a good thing to store the
precompiled headers in the éLibraryéCachesé ?
Please post the build transcript lines that show the ProcessPCH step that
builds the precompiled header and the CompileC step that fails because it
can't find the precompiled header, including the actual and complete error
messages from the build transcript.
Also indicate whether this is in Xcode 1.5, 2.0, 2.1, 2.2DP1, or
2.2DP2.
ProcessPCH++
/Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/MSDEV4.0/HashDefines-ccljydmngssqvjcwbmcjenlfyoaa/HashDefines.h.gch
HashDefines.h normal ppc c++ com.apple.compilers.gcc.3_3
mkdir
/Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/MSDEV4.0/HashDefines-ccljydmngssqvjcwbmcjenlfyoaa
cd /Users/dualg4/MSDEV4.0
setenv MACOSX_DEPLOYMENT_TARGET 10.4
setenv NEXT_ROOT
/Developer/SDKs/MacOSX10.4.0.sdk
/usr/bin/gcc-3.3 -x c++-header -arch ppc -pipe -Wno-trigraphs
-fpascal-strings -fasm-blocks -g -Os -Wno-four-char-constants -fmessage-length=0
-mtune=G4
-Wp,-header-mapfile,/Users/dualg4/MSDEV4.0/build/MSDEV.build/AdvAPI32.build/AdvAPI.hmap
-Wmost -F/Users/dualg4/MSDEV4.0/build -I/Users/dualg4/MSDEV4.0/build/include
-I/Users/dualg4/MSDEV4.0/mac/include -I/Users/dualg4/MSDEV4.0/Include
-I/Users/dualg4/MSDEV4.0
-I/Users/dualg4/MSDEV4.0/build/MSDEV.build/AdvAPI32.build/DerivedSources
-isystem /Developer/SDKs/MacOSX10.4.0.sdk/usr/include/gcc/darwin/
-I/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/gcc/darwin//c++
-I/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/gcc/darwin//c++/ppc-darwin
-isystem /Developer/SDKs/MacOSX10.4.0.sdk/usr/include -c
/Users/dualg4/MSDEV4.0/HashDefines.h -o
/Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/MSDEV4.0/HashDefines-ccljydmngssqvjcwbmcjenlfyoaa/HashDefines.h.gch
CompileC
build/MSDEV.build/GDI32.build/Objects-normal/ppc/MetaFile.o GDI32/MetaFile.cpp
normal ppc c++ com.apple.compilers.gcc.3_3
mkdir
/Users/dualg4/MSDEV4.0/build/MSDEV.build/GDI32.build/Objects-normal/ppc
cd /Users/dualg4/MSDEV4.0
setenv MACOSX_DEPLOYMENT_TARGET 10.4
setenv NEXT_ROOT
/Developer/SDKs/MacOSX10.4.0.sdk
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings
-fasm-blocks -g -Os -Wno-four-char-constants -fmessage-length=0 -mtune=G4
-Wp,-header-mapfile,/Users/dualg4/MSDEV4.0/build/MSDEV.build/GDI32.build/libGDI32.hmap
-Wmost -F/Users/dualg4/MSDEV4.0/build -I/Users/dualg4/MSDEV4.0/build/include
-I/Users/dualg4/MSDEV4.0/mac/include -I/Users/dualg4/MSDEV4.0/Include
-I/Users/dualg4/MSDEV4.0
-I/Users/dualg4/MSDEV4.0/build/MSDEV.build/GDI32.build/DerivedSources -isystem
/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/gcc/darwin/
-I/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/gcc/darwin//c++
-I/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/gcc/darwin//c++/ppc-darwin
-isystem /Developer/SDKs/MacOSX10.4.0.sdk/usr/include -include
/Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/MSDEV4.0/HashDefines-ccljydmngssqvjcwbmcjenlfyoaa/HashDefines.h
-c /Users/dualg4/MSDEV4.0/GDI32/MetaFile.cpp -o
/Users/dualg4/MSDEV4.0/build/MSDEV.build/GDI32.build/Objects-normal/ppc/MetaFile.o
Ld
/Users/dualg4/MSDEV4.0/build/libGDI32.dylib normal ppc
mkdir /Users/dualg4/MSDEV4.0/build
cd /Users/dualg4/MSDEV4.0
setenv MACOSX_DEPLOYMENT_TARGET 10.4
setenv NEXT_ROOT
/Developer/SDKs/MacOSX10.4.0.sdk
/usr/bin/g++-3.3 -o /Users/dualg4/MSDEV4.0/build/libGDI32.dylib
-L/Users/dualg4/MSDEV4.0/build
-L/Users/dualg4/MSDEV4.0/MacStubs/build/MacStubs.dll/Contents/MacOS
-L/Users/dualg4/MSDEV4.0/build/WLM.dll/Contents/MacOS
-L/Users/dualg4/MSDEV4.0/build/GDI32.dll/Contents/MacOS
-L/Users/dualg4/MSDEV4.0/build/User32.dll/Contents/MacOS
-L/Users/dualg4/MSDEV4.0/build/Kernel32.dll/Contents/MacOS
-L/Developer/SDKs/MacOSX10.4.0.sdk/usr/lib/gcc/darwin/3.3
-F/Users/dualg4/MSDEV4.0/build -filelist
/Users/dualg4/MSDEV4.0/build/MSDEV.build/GDI32.build/Objects-normal/ppc/libGDI32.LinkFileList
-framework Carbon -framework System -arch ppc -prebind -Wl,-single_module
-dynamiclib -compatibility_version 1 -current_version 1 -install_name
/usr/local/lib/libGDI32.dylib -lMacStubs -framework Carbon
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4.0.sdk
/usr/bin/libtool: NEXT_ROOT environment variable
ignored because -syslibroot specified
ld: warning NEXT_ROOT environment variable ignored because -syslibroot
specified
ld: warning -prebind ignored
because MACOSX_DEPLOYMENT_TARGET environment variable greater or equal to
10.4
CompileC
build/MSDEV.build/WLM.build/Objects-normal/ppc/WLM.o WLM/WLM.cpp normal ppc c++
com.apple.compilers.gcc.3_3
mkdir
/Users/dualg4/MSDEV4.0/build/MSDEV.build/WLM.build/Objects-normal/ppc
cd /Users/dualg4/MSDEV4.0
setenv MACOSX_DEPLOYMENT_TARGET 10.3
setenv NEXT_ROOT
/Developer/SDKs/MacOSX10.4.0.sdk
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings
-fasm-blocks -g -Os -Wno-four-char-constants -fmessage-length=0 -mtune=G4
-Wp,-header-mapfile,/Users/dualg4/MSDEV4.0/build/MSDEV.build/WLM.build/libWLM.hmap
-Wmost -F/Users/dualg4/MSDEV4.0/build -I/Users/dualg4/MSDEV4.0/build/include
-I/Users/dualg4/MSDEV4.0/mac/include -I/Users/dualg4/MSDEV4.0/Include
-I/Users/dualg4/MSDEV4.0
-I/Users/dualg4/MSDEV4.0/build/MSDEV.build/WLM.build/DerivedSources -isystem
/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/gcc/darwin/
-I/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/gcc/darwin//c++
-I/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/gcc/darwin//c++/ppc-darwin
-isystem /Developer/SDKs/MacOSX10.4.0.sdk/usr/include -include
/Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/MSDEV4.0/HashDefines-ccljydmngssqvjcwbmcjenlfyoaa/HashDefines.h
-c /Users/dualg4/MSDEV4.0/WLM/WLM.cpp -o
/Users/dualg4/MSDEV4.0/build/MSDEV.build/WLM.build/Objects-normal/ppc/WLM.o
cc1plus:
/Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/MSDEV4.0/HashDefines-ccljydmngssqvjcwbmcjenlfyoaa/HashDefines.h:
No such file or directory
cc1plus: one
or more PCH files were found, but they were invalid
cc1plus: use -Winvalid-pch for more
information
Yves Poissant