Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


SuperBible: #include gltools.h produces linker error


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 tonysameh   Members   -  Reputation: 157

Like
0Likes
Like

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?

Sponsor:

#2 tonysameh   Members   -  Reputation: 157

Like
0Likes
Like

Posted 05 October 2009 - 05:33 PM

This solved my problem (but I don't know if it caused new ones or not)

Project -> Properties -> C/C++ -> Code Generation -> Runtime Library -> Change it from MDd to MTd





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS