Jump to content
  • Advertisement
Sign in to follow this  
Unconquerable

Undefined reference to...

This topic is 4506 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!