Re: Sudden problems with linking my project
Re: Sudden problems with linking my project
- Subject: Re: Sudden problems with linking my project
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 8 Jul 2003 16:00:29 -0700
On Tuesday, July 8, 2003, at 07:55 AM, Joseph Jones wrote:
OK, Here's another problem I have been having that is less important,
but more of a time hit: Since installing the gcc 3.3 update, I have not
been able to use pre-compiled headers during my build, thus slowing my
build times WAY down.
I've looked into this, and it does appear to be a bit of a hassle to
use GCC 3.3 precompiled headers with PB 2.1 projects. Basically, what
you have to do is...
1. Create a header prefix file and include all of the headers used by
the project in that file.
2. Compile it with GCC 3.3 as a header file. You must turn on debugging
symbols if you're using them in the project, and you must also include
all of the -D defines used when compiling the project, or else GCC
won't use the headers.
3. Finally, you have to include the prefix file in all of your source
files, replacing all existing includes, or else GCC won't use the
headers.
XCode supposedly automates all of this...
ResourceMap.h:9: warning: could not use precompiled header
'/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa-gcc3.p',
because:
ResourceMap.h:9: warning: 'Foundation/Foundation.h' has different date
than in precomp
ResourceMap.h:9: warning: 'Foundation/NSObjCRuntime.h' has different
date than in precomp
ResourceMap.h:9: warning: 'Foundation/NSArchiver.h' has different date
than in precomp
ResourceMap.h:9: warning: 'Foundation/NSCoder.h' has different date
than in precomp
ResourceMap.h:9: warning: and others...
Anyone have any ideas here?
Yes, it looks like you're using GCC 3.1 and you haven't updated the
precompiled headers recently. This is a frequently asked question, but
here's the answer... "sudo fixPrecomps -all"
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://seiryu.home.comcast.net/
"You can't modify a constant, float upstream, win an argument with the
IRS, or satisfy this compiler" - actual MPW 68K compiler error message
_______________________________________________
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.