[SDL] SDL_LoadFunction and SDL_LoadObject

Tomas Carnecky tom at dbservice.com
Sun Feb 25 15:36:47 PST 2007


Sven Gößner wrote:
> * My Lib:
> 
> comiled an linked with:
> gcc -c -fPIC test.cpp 
> g++ -shared -Bdynamic test.o -o ./Debug/liblibrary_G711.so -lc
> 
> 

compile libs with gcc and not g++, as g++ mangles the function names, or 
enclose the function in 'extern "C" { ... }'.

tom


More information about the SDL mailing list