Weak Linking Crash

2009-03-11 Thread Simone Manganelli
So I'm trying to weak link the SDL_mixer framework (svn source avaliable here: http://svn.libsdl.org/trunk/SDL_mixer ) to a Cocoa project, the Mac OS X port of Descent 2 (svn source available here: https://d2x-xl.svn.sourceforge.net/svnroot/d2x-xl ). I've followed the instructions on

Re: Weak Linking Crash

2009-03-11 Thread Greg Parker
On Mar 11, 2009, at 5:47 PM, Simone Manganelli wrote: So I'm trying to weak link the SDL_mixer framework (svn source avaliable here: http://svn.libsdl.org/trunk/SDL_mixer ) to a Cocoa project, the Mac OS X port of Descent 2 (svn source available here:

Re: Weak Linking Crash

2009-03-11 Thread Simone Manganelli
Il giorno Mar 11, 2009, alle ore 6:22 PM, Greg Parker ha scritto: -weak_framework often doesn't work by itself. If the function declaration isn't marked weak_import in the header file, then the compiler may optimize out your `function != NULL` check and call the weak-linked function