• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Weird Framework linkage problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird Framework linkage problem


  • Subject: Weird Framework linkage problem
  • From: Yakov Zaytsev <email@hidden>
  • Date: Mon, 14 May 2007 16:06:30 +0400


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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Weird Framework linkage problem
      • From: Yakov Zaytsev <email@hidden>
  • Prev by Date: Re: NSWorkspace and unmounting USB drives
  • Next by Date: Re: The released object is not releasing memory
  • Previous by thread: [Solved]RE: The released object is not releasing memory
  • Next by thread: Re: Weird Framework linkage problem
  • Index(es):
    • Date
    • Thread