Working SDL Examples?
Tristan M. (2946) 1039 posts |
Try as I might, I cannot get anything that uses the SDL1.2 libs to build on RO. Is there some arcanum that I’m not aware of? Any help would be appreciated. Does anyone here use SDL on RO? |
Ronald (387) 195 posts |
In linux I can build the code with You will have to specify -static if you are building a static binary. |
Tristan M. (2946) 1039 posts |
It gets grumpy about not finding the header if I change it, so I guess that’s okay. So I have to do it static? I’ll give it a try next chance I get. |
Ronald (387) 195 posts |
I think if it found shared library components it might have tried to build a shared executable, but would then complain that |
Ronald (387) 195 posts |
To be sure of linking to the static library you would have to use -L. libSDL.a I have been reading a bit on this, It seems to be mentioned in !SharedLibs docs and in my big Linux book that the type of executable is decided by what type of libraries it is told to link to, with a preference for dynamic building. Separating the build stages is probably the safest way and perhaps better visibility. To build a static library Something I learnt today, was that the link flag |