Re: No such file error?
Re: No such file error?
- Subject: Re: No such file error?
- From: Jeff Heyob <email@hidden>
- Date: Wed, 23 Nov 2005 23:42:20 -0500
Eric,
I went with your suggestion for <Carbon/Carbon.h> and that worked great.
That got me to some warnings and a different "No such file or
directory" error.
error: USessionPrinting.cp: No such file or directory
This error occurred in UPrinting.cp line 30
#include <USessionPrinting.cp>
Another case of the file being accessible despite the error.
I commented out the include line to bypass the problem at least
temporarily.
Xcode also didn't like all of my pascal string arguments. It cast
them all as const. Instead of trying to re-typecast all of them, I
found the setting to treat the error as a warning.
My application now builds and launches.
Thanks for your help,
Jeff
On Nov 23, 2005, at 10:17 PM, Eric Albert wrote:
On Nov 23, 2005, at 7:09 PM, Jeff Heyob wrote:
I'm trying to import my first CodeWarrior project into Xcode and
using Xcode2.2 on OSX 10.4.2
After several failures, I restarted by importing my old project
into Xcode again. My prefix file begins with the following include:
#include <CarbonCore/MacTypes.h>
When I build the project, the precompile of my prefix file
generates this error:
error: CarbonCore/MacTypes.h: No such file or directory
I can execute a quick open on <CarbonCore/MacTypes.h> so I believe
that the file does exists and I don't understand the error. any
assistance to understand and solve this problem would be appreciated.
CarbonCore is a subframework of CoreServices. When you use
framework-style includes, by default the compiler only allows you
to directly reference headers in top-level frameworks.
In other words, change this to
#include <CoreServices/CoreServices.h>
and you'll be all set. Better yet, if this is a Carbon app, use
#include <Carbon/Carbon.h>
in your prefix file and you can remove any other references to
Carbon, CoreServices, or CarbonCore headers in that file because
that one #include will include all of them.
Hope this helps,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden