• 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
Weak linking an entire framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weak linking an entire framework?


  • Subject: Weak linking an entire framework?
  • From: Pierre-Olivier Latour <email@hidden>
  • Date: Wed, 25 Dec 2002 18:36:18 -0800

Hi and Merry Christmas :)

I would like to know if it possible to weak link an entire framework with my
app.

Tech note 2064 says:
"if all symbols that an app imports from a given framework are weakly
linked, then the framework as a whole will be automatically marked weak in
the application's load command where it loads that framework/library."
-> http://developer.apple.com/technotes/tn2002/tn2064.html

However, I don't feel like creating a special header file to redefine all
the functions in the framework for weak-linking e.g.
extern int SayHello() __attribute__((weak_import));

So is there any simple (like checking a box as in CodeWarrior for OS 9) to
tell automatically the linker to weak-link the entire framework?

Note: I'm importing a C framework inside my cocoa app, not an obj-c
framework

_____________________________________________________________

Pierre-Olivier Latour email@hidden
Palo Alto, USA http://www.pol-online.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Documentations on FRAMEWORKS
  • Next by Date: writing & reading a file in Cocoa
  • Previous by thread: Re: *Really* Understanding Cocoa
  • Next by thread: writing & reading a file in Cocoa
  • Index(es):
    • Date
    • Thread