SuperBible: #include gltools.h produces linker error
1 reply to this topic
Members - Reputation: 157
Posted 05 October 2009 - 06:42 AM
I successfully compiled a project from SuperBible samples. Its main file includes the following: #include "../../shared/gltools.h" // OpenGL toolkit But when I made a new project in the same path and included the same above line, the following Linker errors are generated: error LNK2019: unresolved external symbol __iob referenced in function _fgError freeglut_static.lib Error 2 error LNK2001: unresolved external symbol __iob freeglut_static.lib Now when I removed the include file and added regular includes: #include <windows.h> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> The project compiled successfully. To wrap it up, there is something inside the project configuration in the SuperBible examples that allows it to include shared/gltools.h without those linker errors. Any help?