Re: Do #pragma weak work in Darwin?
Re: Do #pragma weak work in Darwin?
- Subject: Re: Do #pragma weak work in Darwin?
- From: Garth Cummings <email@hidden>
- Date: Mon, 19 Mar 2007 16:14:44 -0700
Hi Paul,On Mar 19, 2007, at 3:57 PM, Paul Nelson wrote: The pragma in it's basic form compiles, but does not appear to work. The pragma in it's alias form gives a warning, and is ignored. I think the docs only mean to say the pragmas will compile. They don't say the resulting code will work.
GCC prefers __attribute__ over #pragmas in general. __attribute__((weak_import)) is the means for specifying a weak-linked symbol.
HTH, --gc ____________________________________________________________________ Sr. Software Engineer Apple Developer Technical Support
WWDC 2007 • June 11-15 • Moscone West • San Francisco, CA
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden