So I have this very simply SDL application I want to be able to pass to my friend without having him download a whole bunch of SDL packages.
how can I go about this? I was told to use this line to compile: (note that I use ubuntu linux and so does my friend, and that this application compiles and runs without the "-Wl,-Bstatic" options just fine.)
g++ test-sdl.cpp -o test-sdl -Wl,-Bstatic -lSDL_image -lSDL
But then I get this error:
/usr/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status
why am I getting this error? how do I fix it? do I even have to do this in this way? Is there a different/easier/alternative way?
Am I asking for so much by wanting to save my friend the hassle of downloading packages he will probably never use anyway?
Thanks.