cd /Users/julian/Downloads/cocotron/Foundation
/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -pipe -Wno-
trigraphs -fpascal-strings -fasm-blocks -Os -fmessage-length=0 -I/
Users/julian/Documents/Development/_BUILD/_INTERMEDIATE/
Foundation.build/Deployment/Foundation-Windows-i386.build/
Foundation.hmap -F/Developer/Cocotron/1.0/build/Foundation/Windows/
Deployment -I/Developer/Cocotron/1.0/build/Foundation/Windows/
Deployment/include -I/Users/julian/Documents/Development/_BUILD/
_INTERMEDIATE/Foundation.build/Deployment/Foundation-Windows-
i386.build/DerivedSources -DFOUNDATION_INSIDE_BUILD -
DOBJC_INSIDE_BUILD -D__LITTLE_ENDIAN__ -c /Users/julian/Downloads/
cocotron/Foundation/NSObject/NSObject.m -o /Users/julian/Documents/
Development/_BUILD/_INTERMEDIATE/Foundation.build/Deployment/
Foundation-Windows-i386.build/Objects-normal/i386/NSObject.o
In file included from /usr/include/objc/objc-class.h:2,
from /Users/julian/Downloads/cocotron/Foundation/objc/
ObjCSelector.h:10,
from /Users/julian/Downloads/cocotron/Foundation/objc/
ObjCClass.h:11,
from /Users/julian/Downloads/cocotron/Foundation/
NSObject/NSObject.m:20:
/usr/include/objc/message.h:28: error: redefinition of 'struct
objc_super'
In file included from /Users/julian/Downloads/cocotron/Foundation/objc/
ObjCClass.h:11,
from /Users/julian/Downloads/cocotron/Foundation/
NSObject/NSObject.m:20:
/Users/julian/Downloads/cocotron/Foundation/objc/ObjCSelector.h:25:
warning: 'objc_method' is deprecated (declared at /usr/include/objc/
runtime.h:38)
In file included from /Users/julian/Downloads/cocotron/Foundation/
NSObject/NSObject.m:20:
/Users/julian/Downloads/cocotron/Foundation/objc/ObjCClass.h:21:
error: conflicting types for 'objc_getOrigClass'
/usr/include/objc/runtime.h:464: error: previous declaration of
'objc_getOrigClass' was here
/Users/julian/Downloads/cocotron/Foundation/objc/ObjCClass.h:24:
error: syntax error before '*' token
/Users/julian/Downloads/cocotron/Foundation/objc/ObjCClass.h:26:
warning: 'objc_method' is deprecated (declared at /usr/include/objc/
runtime.h:38)
from /Users/julian/Downloads/cocotron/Foundation/
NSObject/NSObject.m:20:
from /Users/julian/Downloads/cocotron/Foundation/
objc/ObjCClass.h:11,
from /Users/julian/Downloads/cocotron/Foundation/
objc/ObjCSelector.h:10,
In file included from /usr/include/objc/objc-class.h:2,
/usr/include/objc/message.h:28: error: redefinition of 'struct
objc_super'
from /Users/julian/Downloads/cocotron/Foundation/
NSObject/NSObject.m:20:
In file included from /Users/julian/Downloads/cocotron/Foundation/
objc/ObjCClass.h:11,
/Users/julian/Downloads/cocotron/Foundation/objc/ObjCSelector.h:25:
warning: 'objc_method' is deprecated (declared at /usr/include/objc/
runtime.h:38)
In file included from /Users/julian/Downloads/cocotron/Foundation/
NSObject/NSObject.m:20:
/Users/julian/Downloads/cocotron/Foundation/objc/ObjCClass.h:21:
error: conflicting types for 'objc_getOrigClass'
/usr/include/objc/runtime.h:464: error: previous declaration of
'objc_getOrigClass' was here
/Users/julian/Downloads/cocotron/Foundation/objc/ObjCClass.h:24:
error: syntax error before '*' token
/Users/julian/Downloads/cocotron/Foundation/objc/ObjCClass.h:26:
warning: 'objc_method' is deprecated (declared at /usr/include/objc/
runtime.h:38)
so i head over to Foundation.xcodeproj and add the cocotron folder to
the header search path, now i get:
Building target "Foundation-Windows-i386" of project "Foundation" with
configuration "Deployment" - (8 errors)
cd /Users/julian/Downloads/cocotron/Foundation
/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -pipe -Wno-
trigraphs -fpascal-strings -fasm-blocks -Os -fmessage-length=0 -I/
Users/julian/Documents/Development/_BUILD/_INTERMEDIATE/
Foundation.build/Deployment/Foundation-Windows-i386.build/
Foundation.hmap -F/Developer/Cocotron/1.0/build/Foundation/Windows/
Deployment -I/Developer/Cocotron/1.0/build/Foundation/Windows/
Deployment/include -I/Users/julian/Downloads/cocotron -I/Users/julian/
Documents/Development/_BUILD/_INTERMEDIATE/Foundation.build/Deployment/
Foundation-Windows-i386.build/DerivedSources -DFOUNDATION_INSIDE_BUILD
-DOBJC_INSIDE_BUILD -D__LITTLE_ENDIAN__ -c /Users/julian/Downloads/
cocotron/Foundation/platform_win32/dllmain.m -o /Users/julian/
Documents/Development/_BUILD/_INTERMEDIATE/Foundation.build/Deployment/
Foundation-Windows-i386.build/Objects-normal/i386/dllmain.o
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
9:20: error: windows.h: No such file or directory
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
12: error: syntax error before 'handle'
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
14: error: syntax error before 'DllMain'
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
14: error: syntax error before 'handle'
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
In function 'DllMain':
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
16: error: 'reason' undeclared (first use in this function)
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
16: error: (Each undeclared identifier is reported only once
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
16: error: for each function it appears in.)
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
16: error: 'DLL_PROCESS_ATTACH' undeclared (first use in this
function)
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
17: error: 'handle' undeclared (first use in this function)
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
19: error: 'TRUE' undeclared (first use in this function)
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
9:20: error: windows.h: No such file or directory
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
12: error: syntax error before 'handle'
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
14: error: syntax error before 'DllMain'
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
14: error: syntax error before 'handle'
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
16: error: 'reason' undeclared (first use in this function)
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
16: error: 'DLL_PROCESS_ATTACH' undeclared (first use in this
function)
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
17: error: 'handle' undeclared (first use in this function)
/Users/julian/Downloads/cocotron/Foundation/platform_win32/dllmain.m:
19: error: 'TRUE' undeclared (first use in this function)
Build failed (8 errors)
and if i also add /Developer/Cocotron/1.0/PlatformInterfaces/i386-
mingw32msvc/include to the Header search paths the errors change to:
Building target "Foundation-Windows-i386" of project "Foundation" with
configuration "Deployment" - (11 errors)
cd /Users/julian/Downloads/cocotron/Foundation
/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -pipe -Wno-
trigraphs -fpascal-strings -fasm-blocks -Os -fmessage-length=0 -I/
Users/julian/Documents/Development/_BUILD/_INTERMEDIATE/
Foundation.build/Deployment/Foundation-Windows-i386.build/
Foundation.hmap -F/Developer/Cocotron/1.0/build/Foundation/Windows/
Deployment -I/Developer/Cocotron/1.0/build/Foundation/Windows/
Deployment/include -I/Developer/Cocotron/1.0/PlatformInterfaces/i386-
mingw32msvc/include -I/Users/julian/Downloads/cocotron -I/Users/julian/
Documents/Development/_BUILD/_INTERMEDIATE/Foundation.build/Deployment/
Foundation-Windows-i386.build/DerivedSources -DFOUNDATION_INSIDE_BUILD
-DOBJC_INSIDE_BUILD -D__LITTLE_ENDIAN__ -c /Users/julian/Downloads/
cocotron/Foundation/NSAutoreleasePool/NSAutoreleasePool.m -o /Users/
julian/Documents/Development/_BUILD/_INTERMEDIATE/Foundation.build/
Deployment/Foundation-Windows-i386.build/Objects-normal/i386/
NSAutoreleasePool.o
In file included from /Users/julian/Downloads/cocotron/Foundation/
Foundation.h:11,
from /Users/julian/Downloads/cocotron/Foundation/
NSThread/NSThread-Private.h:9,
from /Users/julian/Downloads/cocotron/Foundation/
NSAutoreleasePool/NSAutoreleasePool.m:13:
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'isalnum':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:143: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:143: error: (Each undeclared identifier is reported only once
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:143: error: for each function it appears in.)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'isalpha':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:144: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'iscntrl':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:145: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'isdigit':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:146: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'isgraph':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:147: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'islower':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:148: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'isprint':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:149: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'ispunct':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:150: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'isspace':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:151: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'isupper':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:152: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h: In function 'isxdigit':
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/include/
ctype.h:153: error: '_imp____mb_cur_max_dll' undeclared (first use in
this function)
from /Users/julian/Downloads/cocotron/Foundation/
NSAutoreleasePool/NSAutoreleasePool.m:13:
from /Users/julian/Downloads/cocotron/Foundation/
NSThread/NSThread-Private.h:9,
In file included from /Users/julian/Downloads/cocotron/Foundation/
Foundation.h:11,
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:143: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:144: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:145: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:146: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:147: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:148: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:149: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:150: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:151: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:152: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
/Developer/Cocotron/1.0/PlatformInterfaces/i386-mingw32msvc/
include/ctype.h:153: error: '_imp____mb_cur_max_dll' undeclared (first
use in this function)
Build failed (11 errors)
any ideas? ;-)
thanks, julian
Your log indicates that Xcode is using the system gcc-4.0 instead of
the CDT cross-compiler. This means that Xcode is not recognizing the
installed cross-compiler and is caused by one or more things:
a) The compiler install quietly failed and there is no pbcompspec for Xcode
Make sure in: $HOME/Library/Application Support/Xcode/Specifications
There is:
Cocotron-1.0-Windows-i386-gcc-<version>.pbcompspec
and:
Cocotron-1.0-Windows-i386-gcc-default.pbcompspec
Where version is either 4.2.1 or 4.0.3
b) You installed gcc 4.2.1 cross-compiler but the 4.0.3 target is selected
If you installed 4.2.1, make sure the project's active target is _not_
the -gcc-4.0.3 one.
c) Xcode is not recognizing the pbcompspec's
Restarting Xcode might work, or rebooting
If that doesn't work, try moving the pbcompspec files to
/Library/Application Support/Xcode/Specifications
Hopefully this helps, let us know if these failed or worked. Once
Xcode is using the right compiler, it goes a little more smoothly.
Thanks,
Chris
Thanks for putting me on the right track, Rolf!
Dave