Jump to content

  • Log In with Google      Sign In   
  • Create Account


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


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
3 replies to this topic

#1 D.V.D   Members   -  Reputation: 435

Like
0Likes
Like

Posted 06 October 2012 - 06:02 PM

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, 06 October 2012 - 08:09 PM.


Sponsor:

#2 e‍dd   Members   -  Reputation: 2105

Like
0Likes
Like

Posted 07 October 2012 - 04:27 AM

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?

#3 D.V.D   Members   -  Reputation: 435

Like
0Likes
Like

Posted 07 October 2012 - 11:04 AM

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, 07 October 2012 - 11:05 AM.


#4 D.V.D   Members   -  Reputation: 435

Like
0Likes
Like

Posted 09 October 2012 - 08:44 PM

Bump




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