Re: Weird Framework linkage problem
Re: Weird Framework linkage problem
- Subject: Re: Weird Framework linkage problem
- From: Yakov Zaytsev <email@hidden>
- Date: Thu, 17 May 2007 19:45:08 +0400
Architectures of framework and bundle was different..
WHY at hell Xcode doesn't showed me a standard Warning?!..
After I've selected to build for the same arch -ppc- everything
became correct..
On May 14, 2007, at 4:06 PM, Yakov Zaytsev wrote:
Hi,
I've made a cocoa-based framework and placed it's builds into same
directory where application bundle build placed
Framework is found by LD but it cannot find too symbols of which the
framework consists..
This is strange because NM shows me following
000014b4 t -[Controller init]
000016e8 t -[Controller launchThread:]
00001820 t -[Controller longCode]
0000178c t -[Controller presentDataToUser:]
000015cc t -[Controller showWindow]
00000000 A .objc_class_name_Controller
U .objc_class_name_NSAutoreleasePool
U .objc_class_name_NSBundle
U .objc_class_name_NSDate
U .objc_class_name_NSNumber
U .objc_class_name_NSObject
U .objc_class_name_NSThread
U _NSApplicationLoad
U _NSLog
U ___CFConstantStringClassReference
000013e8 t ___initialize_Cplusplus
000013c8 t __dyld_func_lookup
00000000 t __mh_dylib_header
000019e0 T _initializeCocoa <====
U _objc_msgSend
U _objc_msgSendSuper
00001ae8 T _orderWindowFront <====
00002094 b _sharedController
<..>
Here's what GCC tells me
Ld "/Users/yakovzaytsev/Projects/build/BasicInterface.build/ppc i386/
Debug.build/Objects-normal/ppc/BasicInterfaceSample" normal ppc
cd "/Users/yakovzaytsev/Projects/XDK7.01UB/SampleXTs/
BasicInterface copy"
/usr/bin/g++-4.0 -o /Users/yakovzaytsev/Projects/build/
BasicInterface.build/ppc\ i386/Debug.build/Objects-normal/ppc/
BasicInterfaceSample -L/Users/yakovzaytsev/Projects/XDK7.01UB/
SampleXTs/BasicInterface\ copy/build/ppc\ i386 -L../../XTHeaders -F/
Users/yakovzaytsev/Projects/XDK7.01UB/SampleXTs/BasicInterface\ copy/
build/ppc\ i386 -F/Users/yakovzaytsev/Projects/XDK7.01UB/SampleXTs/
BasicInterface\ copy/build/ppc\ i386 -filelist /Users/yakovzaytsev/
Projects/build/BasicInterface.build/ppc\ i386/Debug.build/Objects-
normal/ppc/BasicInterfaceSample.LinkFileList -framework Carbon -
framework CocoaStuff -lXP_XTEMAC7.XC -arch ppc -Wl,-Y,1455 -bundle -
mmacosx-version-min=10.4 -Wl,-dead_strip -
no_dead_strip_inits_and_terms -Wl,-Sp -isysroot /Developer/SDKs/
MacOSX10.4u.sdk
/usr/bin/ld: Undefined symbols:
initializeCocoa()
orderWindowFront()
/Users/yakovzaytsev/Projects/build/BasicInterface.build/ppc i386/
Debug.build/Objects-normal/ppc/BasicInterface-C55DF553.o reference to
undefined initializeCocoa()
/Users/yakovzaytsev/Projects/build/BasicInterface.build/ppc i386/
Debug.build/Objects-normal/ppc/BasicInterface-C55DF553.o reference to
undefined orderWindowFront()
collect2: ld returned 1 exit status
Framework name is CocoaStuff
Here's LS of the application bundle's Build directory
yakov:~/Projects/<..>/build/ppc i386 yakovzaytsev$ ls
BasicInterfaceSample.xnt CocoaStuff.framework
I cant imagine what could cause such weird problem..
Could you please help me
Thanks in advance!
PS
Maybe there's problem with some kind of export list.. but I never
used such thing with good old GCC (no need for them)
---
Yakov Zaytsev
Envion Software http://www.envionsoftware.com
<Talk Small and Carry a Big Class Library>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40envionsoftware.com
This email sent to email@hidden
---
Yakov Zaytsev
Envion Software http://www.envionsoftware.com
<Talk Small and Carry a Big Class Library>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden