• 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
No static functions with linking .a to .dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No static functions with linking .a to .dylib


  • Subject: No static functions with linking .a to .dylib
  • From: Alexander Zvyagin <email@hidden>
  • Date: Fri, 13 May 2011 19:10:50 +0400
  • Acceptlanguage: en-US, ru-RU
  • Thread-topic: No static functions with linking .a to .dylib

Hello, all!

Please help me to link compiled *.a modules to *.dylib library.

Currently linked file has runtime errors with no static functions found from .a module by .dylib library:

+[NSString stringStaticFunction]: unrecognized selector sent to class 0x12345678
+[NSString stringStaticFunction]: unrecognized selector sent to class 0x12345678
+[NSString stringStaticFunction]: unrecognized selector sent to class 0x12345678
...
etc.

I'm try to use '--whole-archive' linker flag, but it doesn't help.

Some peoples (http://savannah.gnu.org/support/?105489) say about this flag is doesn't actual on OSX.

Convertion .a->.dylib and .dylib->.a is also not possible: i must use the result dylib in a big project and i don't want to export a very wide classes set from .a module.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: No static functions with linking .a to .dylib
      • From: Greg Parker <email@hidden>
  • Prev by Date: 10.6, sheet controls not responding?
  • Next by Date: Re: Supporting FTP
  • Previous by thread: RESOLVED? Re: 10.6, sheet controls not responding?
  • Next by thread: Re: No static functions with linking .a to .dylib
  • Index(es):
    • Date
    • Thread