Why are you using dlopen? Can't you just link to the dylib, #include the headers and use it like normal? OS X loads the libraries automatically, unlike Win32 and its ugly manual DLL loading mechanism
hi kainjow! i'm using dlopen because it's a concept i'm familiar with. i'm about to release a product and it's critical that i understand the technology i've implemented so that i can hope to support it with any level of competence.
EVENTUALLY, i hope to have a solid enough understanding of all of these unixy linking concepts to be able to implement them and support them, but i'm not there yet, nor do i have the luxury of taking the time to learn those concepts before the product launch.
soooo, i don't know if this is possible or not, but i was just hoping to 'hide' the lylib inside the .app package bundle and, using some cfbundle api or something to locate it and provide the required path, and load the lib using dlopen.
this will also allow me to use the code that was provided with the 3rd party dylib, which is basically thousands of lines of wrapper code that i'd hate to have to sift through to rip out the library loading functions and make 'static lib' type calls