No static functions with linking .a to .dylib
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