OK found some reading material on
Cross-development in the apple developer forum and followed the instructions for
setting up a build using 10.3 sdk.
Also I set my gcc to 3.3. I still need to
develop my NKE for 10.4 but first I thought I would get it to compile on Xcode
2.1 for backwards compatibility with my 10.3 needs.
Now I have only 8 errors. These errors are
relating to the struct sockaddr. Basically all the errors are “…
field ‘ifru_addr’ has incomplete type”, relating to anything
defined as a struct sockaddr in the if.h file. The if.h file is called from the
dlil.h file from the MacOSX10.3.9.sdk folder.
Has anyone seen had a problem similar to
this? Any suggestions?
Thanks
-----Original Message-----
Sent:
Tuesday, October
04, 2005 3:46 PM
To: email@hidden
Subject: Carbon app converting
from Xcode 1.5 to Xcode 2.1
I have a Carbon app that I am trying to convert to
compile in Xcode 2.1. My app is from Xcode 1.5 and of course works fine in 1.5.
I moved my app over to my 10.4 machine and loaded it
into xcode 2.1. When I go to compile I am getting about 700 errors with most of
them relating to “…does not name a type”.
Most of these come from the .pch file, that the xcode
is trying compile first.
As an example the first error comes from types.h file
with an error “error: ‘__darwin_intptr_t’ does not name a
type”. The only line in my .pch file is “#include
<Carbon/Carbon.h>”
I did a test app, from scratch in 10.4, and compared
the .pch file and the configuration settings to my current app and all looks
the same.
Any suggestions or documentation relating to upgrading
projects from 1.5 to 2.1 would greatly be appreciated.
Thanks