Hi, I'm using Ubuntu and in need of direction/help with the SDL library and others... I'm really asking how do you use the runtime libraries... and developmental libraries...
can this be explained in a generic format, so I can use this information if I wanted to use other libraries etc etc
If this is confusing in anyway, I probably don't know what I'm talking about fully...
I want to use the sdl library basically but don't know how to use it... i'ved dled sdl dev and runtime libraries but want a generic formated lesson on how to use runtime and devel libraries in linux
To use it in your source code: #include <SDL/SDL.h>
To compile using the main SDL library for C++: g++ -o OUTFILE FILE... -l SDL
or for vanilla C: gcc -o OUTFILE FILE... -l SDL
where OUTFILE is the name of your output file and FILE... is a space-separated list of input files, whether they're object files or source files. Note that "-l" is the short option for --library, so make sure you use a lowercase 'L' rather than an uppercase 'i'.