Original Post
I'm using C++ and the Dev C++ IDE. I have a few simple SDL based functions for loading and applying surfaces(Pretty much lazyfoo's actaully) and I placed them in a static libary so I don't need to go retype them each project. My problem is that, because it uses SDL, it creates undefined references in the project using the lib, although the lib itself compiles fine. I think it has to do with the fact that SDL is getting initialized in my project, after the lib has been included. I've made sure I use the functions after I initialize SDL and setup everything, but I get the 'udefined references' anyway. How do I get around this? I can't go and initialize and quit SDL for the lib's functions, or that would undoubtably cause errors. Both the lib and my project include the relevant files, and the functions themselves work if they're actaully in the project, but not if they're in a libary. Thanks,