Sign in to follow this  

Lazy Foo' SDL Tutorials

This topic is 2458 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


I've just started the above mentioned tutorials using Command Line (MinGW) (having used it for nothing other than core C++ and use of STL in the past) and have a question about the linker options provided.

[b]-lmingw32[/b] : I've never had to use this before and was just wondering, what is it? why is it neccessary for my small test project to successfully compile.

[s][b]-lSDLmain[/b] : This one I'm not too sure of at all. I haven't even provided the compiler with an include or lib directory for the SDL files. How does it know where to look?
[b]-lSDL[/b] : Looking more for confirmation on this one. Does the linker know what im asking for here as the SDL.dll is present in the directory?[/s]

[b]** After some further research into this, I'm now aware of the reason why the linker succeeds with the above scored through options. I put the SDL headers and libs within the minGW include and lib directories. I'm still unsure of the '-lmingw32' **[/b]

Sorry for my sheer newb-ness but I have to start somewhere I suppose.

Share this post

Link to post
Share on other sites
Sign in to follow this