I have make a first application (An empty Window) with the library SDL2 in C on Haiku BeOS. And I happy about that.
I had Compile and Install the SDL2 library following the Official SDL Website Tutorial.
But in the finaly step, for compiling my SDL2 app with gcc I had must enter a special path (where exactly the library is installed). Like this:
`~/Projects/Hello> gcc main.c -o SDL -I/boot/home/config/non-packaged/include/SDL2 -L/boot/home/config/non-packaged/lib -D_REENTRANT -lSDL2`
… GCC dont find -lSDL2 when I don’t give the full path of the SDL2 library. How can I do for simplify compiling it the next time?
Another question…My SDL2 app can run now but, where is the SDL library (binary like *.DLL on windows)?
I used SDL on Windows before and for distribut a SDL game we must give the binary library with the SDL app.
Thank for reply.