• Advertisement
Sign in to follow this  

Static Lib: Undefined Reference

This topic is 4005 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'm working on a framework for myself for SDL, and I'm doing it in the form of a static library. Both the framework and the program I will use it in make calls to SDL. I took the sample application that shows up when you start a new project with the SDL template, and I tried to substitute in some of my wrapper classes. It compiles fine before I add in the classes, but afterwards, I get undefined references to the SDL functions. In the framework project, I added the SDL libraries in the linker options. I also added them in the program project. I'm not really sure where I should be linking what, so if someone could clarify for me... But anyways, when I try to compile the program, it tells me it has undefined references to SDL functions if I try to utilize the framework (which, in turn, utilizes SDL).

Share this post


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

  • Advertisement