Sign in to follow this  
Uphoreum

Static Lib: Undefined Reference

Recommended Posts

Uphoreum    216
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this