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
Simple Directmedia Layer Forums
static linking
mike
Joined: 28 Apr 2014
Posts: 17
Posted: Thu Aug 04, 2016 5:33 am
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
Posted: Thu Aug 04, 2016 9:41 am
This error:
dlerror:/media/michael/DATA/X-Plane_10/Aircraft/General Aviation/P4/plugins/p4/64/lin.xpl: undefined symbol: SDL_Quit
Powered by
phpBB
© phpBB Group
Design by
Vjacheslav Trushkin
for
phpBBStyles.com
.
Content © SDL