• Advertisement
Sign in to follow this  

Freeglut won't install on VC 2010 win 7 64bit

This topic is 1932 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 found this link for installing freeglut already compiled on windows 7 64 bit but when I run through the installation I get a whole bunch of link errors for every glut/gl function called. The error is Link2019: unresolved external symbol (function name...etc). I tried looking everywhere throughout the internet and I just can't find a answer to this problem. I downloaded the first link MSVC freeglut, I created a folder in Common Files called MSVC and put the libs and includes in that folder. I linked them like said in the readme for the downloaded freeglut to the project and VC recognizes the header but none of the functions that come with freeglut work at all. They all give the link error posted above. The reason Im using freeglut and not glut is because im following a tutorial online and they happen to use functions from freeglut that don't seem to be in glut.h. Can anyone help me? I also added a bin folder with the DLL in the common files/MSVC/freeglut folder I created and added that path to the enviornment path. I still get the same errors though. Can anyone help?

EDIT: I ran normal Glut with no problem but it seems that Im having trouble running GLEW as well. I put all the files into their locations with the same Link error displayed for glew too. Edited by D.V.D

Share this post


Link to post
Share on other sites
Advertisement
Can you provide a tiny sample (e.g. with only a call to glutInit) and show us the command line(s) being used to compile and link?

Share this post


Link to post
Share on other sites
I used this code to create a blank window and I compiled under VC2010 so I just built my project. Not sure about any command lines being used just the default build and run on VC2010.


#include <GL/freeglut.h>


static void RenderSceneCB()
{
glClear(GL_COLOR_BUFFER_BIT);
glutSwapBuffers();
}

static void InitializeGlutCallbacks()
{
glutDisplayFunc(RenderSceneCB);
}


int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA);
glutInitWindowSize(1024, 768);
glutInitWindowPosition(100, 100);
glutCreateWindow("Tutorial 01");

InitializeGlutCallbacks();

glClearColor(0.0f, 0.0f, 0.0f, 0.0f);

glutMainLoop();

return 0;
} Edited by D.V.D

Share this post


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

  • Advertisement