Re: gcc 3.3, Precompiled Headers and Project Builder
Re: gcc 3.3, Precompiled Headers and Project Builder
- Subject: Re: gcc 3.3, Precompiled Headers and Project Builder
- From: Andrew Thompson <email@hidden>
- Date: Tue, 8 Jul 2003 00:50:16 -0400
On Tuesday, Jul 8, 2003, at 00:09 America/New_York, Jeff Harrell wrote:
The long version (although not exactly a complete or well-written one)
is here:
http://www.cocoadev.com/
index.pl?UsingPCHWithGCCThreeThreeAndProjectBuilder
AHA! That's made some progress
The two setup gotcha's I found were:
* It doesn't actually say where to save the Makefile (in the project's
directory), or indeed that the file should be called "Makefile". This
is obvious to most C programmers, but might confuse someone who has
only done Java and/or Project Builder based Objective C development.
* Copying and pasting the Makefile contents out of the web browser
window screwed up the line continuation for me...
The line should look like this:
$(PREFIX_HEADER).gch : $(PREFIX_HEADER)
$(CC) $(DEBUGGING_CFLAGS) $(OPTIMIZATION_CFLAGS) \
$(OTHER_CFLAGS) -I . -x objective-c-header $(OTHER_CFLAGS) \
$(PREFIX_HEADER)
When I pasted it, I got "\ <return>" at the end of the line. The space
must not be there ... it should be "\<return>"
However, I must still have something wrong because things didn't really
get any faster. I looked at 'man gcc' and enabled '-H' to print out
header usage info:
CompileC /Users/me/Unicode Font Info/build/Unicode Font
Info.build/UnicodeFontInfo.build/Objects-normal/ppc/CharacterMatrix.o
/usr/bin/gcc-3.3 -c -F"/Users/me/Unicode Font Info/build"
-I"/Users/me/Unicode Font Info/build/include" -Iclasses -arch ppc
-fno-common -fpascal-strings -O0 -Wmost -Wno-four-char-constants
-Wno-unknown-pragmas -pipe "-fmessage-length=0" -mdynamic-no-pic -g
-precomp-trustfile "/Users/me/Unicode Font Info/build/Unicode Font
Info.build/UnicodeFontInfo.build/TrustedPrecomps.txt"
"-Wp,-header-mapfile,/Users/me/Unicode Font Info/build/Unicode Font
Info.build/UnicodeFontInfo.build/Unicode Font Info.hmap" -include
ufi_Prefix.h "-DMAC_OS_X_VERSION_MIN_REQUIRED=1020" "-H"
classes/CharacterMatrix.m -o "/Users/me/Unicode Font
Info/build/Unicode Font
Info.build/UnicodeFontInfo.build/Objects-normal/ppc/CharacterMatrix.o"
x ./ufi_Prefix.h.gch
. ufi_Prefix.h
... lots more lines about the regular headers getting used...
According to the man page the 'x' indicates the precompiled header was
invalid and was therefore not used.
Any thoughts?
AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside
(see you later space cowboy ...)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.