Re: 10.2.8 framework linking problem (XCode 2.1)
Re: 10.2.8 framework linking problem (XCode 2.1)
- Subject: Re: 10.2.8 framework linking problem (XCode 2.1)
- From: Dair Grant <email@hidden>
- Date: Mon, 14 Nov 2005 10:46:41 +0000
email@hidden wrote:
>I have a project with a number of libraries. Each library (and the
>application) is set to use gcc3.3 and Deployment Target to 10.2.
>This has worked fine for a number of releases, I use a number of APIs
>which don't exist in 10.2.8 (they are never hit because of OS
>specific code paths.)
>
>I've just added GLSL, but these specific routines are causing errors
>on 10.2.8:
>
>****** undefined reference to _glGetUniformLocationARB expected to be
>defined in OpenGL
>
>When running the dynamic linker. All these symbols should be weak
>linked; I'm not sure what I did wrong here. Side note: It works
>fine in 10.3, which should also be missing these symbols (as far as I
>know.)
Some frameworks (e.g., OpenGL - rdar://4262182) don't make use of
AvailabilityMacros.h. To get weak-linking behaviour with them, you need
to:
- use CFBundleGetFunctionPointerForName to load symbols at runtime
- re-declare the prototypes with a weak linking attribute (which, at
least with gcc 3.3, would override the previous declaration)
- Use -weak_framework to import the entire framework as weak-linked
Just setting a deployment target of 10.2 and a development target of
10.3 is insufficient, unfortunately.
-dair
___________________________________________________
mailto:email@hidden http://www.zonic.co.uk/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden