Sign in to follow this  

Undefined reference to...

This topic is 4200 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

Agggh i get these errors every time i compile
 undefined reference to `Bitmap::Bitmap(HDC__*, char*)'
 undefined reference to `Bitmap::Draw(HDC__*, int, int)'
undefined reference to `GameEngine::m_pGameEngine'
undefined reference to `GameEngine::m_pGameEngine'
undefined reference to `GameEngine::m_pGameEngine'

Any suggestions? -Thanks

Share this post


Link to post
Share on other sites
The error means just what it says, you're trying to reference something which has not been defined. You may be missing an include file or have just forgotten to define your functions/variables before trying to use them.

More code would be helpfull if you still can't figure it out.

Share this post


Link to post
Share on other sites
If Bitmap and GameEngine are classes that you made, than it's likley that you have code which calls those functions and you haven't defined them yet.
Otherwise, make sure that you are including all necessary headers and your linker options are correct.
Like Driv3MeFar said, some source code would really be nice, and whether or not you made the classes which you are getting the undefined refrences for.

Share this post


Link to post
Share on other sites

This topic is 4200 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.

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