Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#ActualMzDay

Posted 15 February 2013 - 10:18 AM

hikarihe is right, just include opengl32.lib in the additional dependencies, along with glut32.lib.

 

If you downloaded GLUT, you should have a GLUT.h and a glut32.lib.

You should put GLUT.h in the "VC\Include\GL" folder (then you use #include <gl\glut.h>) and the glut32.lib in the "VC\lib" folder.

 

The last warning you get are because of the code in your program, not the installation of GLUT.

And yes, i think FreeGLUT is more up-to-date than GLUT, but i'm not sure, since i've never used it.

 

First, thanks smile.png

 

if you could help me with this:

EDIT:
 

so i installed the GLUT with this guide:

http://web.eecs.umich.edu/~sugih/courses/eecs487/glut-howto/


and it's work but couple of problems:

1.when i compile and run the program with VC++ i first get a console
black window and after 1~3  seconds i get the window showed up (and the
console is still in the background), how can i prevent that?


2.when i compile the program and try to run it from the EXE it created i get an error like this:
The program can't start beacause glut32.dll is missing from your computer.

Try reinstalling the program to fix this problem.


should i use SDL? is it better?

 

that would be great! smile.png


#1MzDay

Posted 15 February 2013 - 10:17 AM

hikarihe is right, just include opengl32.lib in the additional dependencies, along with glut32.lib.

 

If you downloaded GLUT, you should have a GLUT.h and a glut32.lib.

You should put GLUT.h in the "VC\Include\GL" folder (then you use #include <gl\glut.h>) and the glut32.lib in the "VC\lib" folder.

 

The last warning you get are because of the code in your program, not the installation of GLUT.

And yes, i think FreeGLUT is more up-to-date than GLUT, but i'm not sure, since i've never used it.

 

First, thanks :)

 

if you could help me with this:

 

EDIT:

 


so i installed the GLUT with this guide:

http://web.eecs.umich.edu/~sugih/courses/eecs487/glut-howto/


 


and it's work but couple of problems:

1.when i compile and run the program with VC++ i first get a console
black window and after 1~3  seconds i get the window showed up (and the
console is still in the background), how can i prevent that?


 


2.when i compile the program and try to run it from the EXE it created i get an error like this:
The program can't start beacause glut32.dll is missing from your computer.

Try reinstalling the program to fix this problem.


 


should i use SDL? is it better?

 

that would be great! :)


PARTNERS