Jump to content
  • Advertisement
Sign in to follow this  
biggoron

Multiple obscure undefined references

This topic is 3808 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 compiling a game using GL, GLUT, GLEE, DevIL, Newton Game Dynamics and TriMesh2 in C++. When I hit compile I get multiple undefined references to functions like _chkstk and _ftol2. Here's a sample:
Quote:
Z]+0x58)||undefined reference to `_ftol2'| AAEXXZ]+0x103)||undefined reference to `_ftol2'| Z]+0xc)||undefined reference to `_chkstk'| Z]+0xc)||undefined reference to `_chkstk'| Z]+0xc)||undefined reference to `_chkstk'| Z]+0xc)||undefined reference to `_chkstk'| Z]+0xc)||undefined reference to `_chkstk'| QBE_JXZ]+0xf)||undefined reference to `_allmul'| Z]+0x12)||undefined reference to `_allmul'| Z]+0x10)||undefined reference to `_allmul'| ||More errors follow but not being shown.| ||Edit the max errors limit in compiler options...| ||=== Build finished: 50 errors, 68 warnings ===|
I am compiling with GCC 3.4.5 on Windows XP x64. All help appreciated. P.S. My IDE is Code::Blocks 8.02.

Share this post


Link to post
Share on other sites
Advertisement
Hello Biggoron,

I'm not sure about this but, I known the two symbols you are having problems with are functions called by code built by MSVC. So my first question would be: Have you rebuilt all of your libraries (GL, GLUT, ...) using gcc? Rather than using versions of these libraries built with MSVC.

If you mixing libraries built with different compilers (MSVC, gcc/ MinGW) this might be the cause of this problem. However I'm not sure if more recent versions gcc/ MinGW now support/ or provide work arounds for this type of linking.

Cheers,

Tom

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!