# Multiple obscure undefined references

This topic is 3719 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## 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 on other sites
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

• 19
• 10
• 19
• 14
• 20