Sunday, August 22, 2004

Xcode 1.5 : I compiled existing Xcode projects such as CyberLink, but the following errors occurred.
gcc-3.3: CyberLink_Prefix.pch: No such file or directory

gcc-3.3: warning: `-x c++-header' after last input file has no effect
gcc-3.3: no input files
gcc-3.3: CyberLink_Prefix.pch: No such file or directory
gcc-3.3: warning: `-x c++-header' after last input file has no effect
gcc-3.3: no input files
I checked the release notes of Xcode v1.5, and I find out the following change about the precompiled header
gcc 3.3 is the default compiler. gcc 3.3 offers the following advantages over gcc 3.1:

Support for optimized code generation for the new PowerPC G5 processor
Support for stub libraries
Many performance optimizations
A new precompiled header mechanism (PCH) that works for C, Objective-C, C++, and Objective-C++
Then, I added the following precompiled header to refer a new project that was created using Xcode v1.5, and I could compile the projects with no problem.
//

// Prefix header for all source files of the 'CyberLink' target in the 'CyberLink' project
//

#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?