• Advertisement
Sign in to follow this  

Undefined Reference

This topic is 4248 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 get a [Linker error] Undefined Reference to a function that is in the same file as the one it is being used in. It seems to randomly do it, because I won't have changed anything and compiled, but I get that error. It doesn't point to any line. If I create a new project and copy the code over, it works again, but it's getting really annoying to keep doing that. What could be the problem with it? EDIT: Now making a new project isn't even working!

Share this post


Link to post
Share on other sites
Advertisement
Hmm, sounds a bit wierd. If the code works when you copypaste it, there is some funky going on in the 'Project settings'. What compiler/IDE are you using?

Share this post


Link to post
Share on other sites
Oh, I guess it was a bit of code causing the problem. I just had to tear the program apart, lol.

Share this post


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

  • Advertisement