The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
static linking
mike


Joined: 28 Apr 2014
Posts: 17
Hi
I do with Eclipse on Ubuntu:

Invoking: GCC C++ Linker
g++ -Wl,-Bstatic -lSDL -Wl,-Bdynamic,-rpath=. -shared -o "lin.xpl" ./main.o ./myList.o -lopenal -lcurl -lGL
Finished building target: lin.xpl

without -lSDL at the end I get sdl-quit not found or alike errors. How to link statically sdl and later sdl_ttf for a X-Plane plugin.
Thanks
mike


Joined: 28 Apr 2014
Posts: 17
This error:
dlerror:/media/michael/DATA/X-Plane_10/Aircraft/General Aviation/P4/plugins/p4/64/lin.xpl: undefined symbol: SDL_Quit