Digity
09-13-2002, 06:11 PM
I installed Microsoft Visual C++ and it had the following header files under the 'GL' directory:
C:\...\Microsoft Visual Studio\VC98\Include\GL\GL.H
C:\...\Microsoft Visual Studio\VC98\Include\GL\GLU.H
C:\...\Microsoft Visual Studio\VC98\Include\GL\GLAUX.H
These are the header files for OpenGL. My first problem is that I don't have GLUT.H in there. I found that header file off the net and just copied it into the "GL" directory. Is that fine? Or is there more that I have to do to use GLUT? I went to the webpage of the develop of GLUT, but I didn't understand his instructions for installing GLUT so I just through the header file into that directory, but I doubt that's all I need to do.
My second problem is that I'm having trouble using OpenGL in MS Visual C++ 6.0. Whenever I create a program such as the following:
#include <gl/Gl.h>
#include <gl/Glu.h>
...code...
I can compile it, but when I try and build the '.exe' file I get all these link errors. What am I doing wrong? I hardly have any experience using MS Visual C++ 6.0, because I've done all my application development using DJGPP C++ and using EditPlus as a text editor for my C++ code.
Thanks
C:\...\Microsoft Visual Studio\VC98\Include\GL\GL.H
C:\...\Microsoft Visual Studio\VC98\Include\GL\GLU.H
C:\...\Microsoft Visual Studio\VC98\Include\GL\GLAUX.H
These are the header files for OpenGL. My first problem is that I don't have GLUT.H in there. I found that header file off the net and just copied it into the "GL" directory. Is that fine? Or is there more that I have to do to use GLUT? I went to the webpage of the develop of GLUT, but I didn't understand his instructions for installing GLUT so I just through the header file into that directory, but I doubt that's all I need to do.
My second problem is that I'm having trouble using OpenGL in MS Visual C++ 6.0. Whenever I create a program such as the following:
#include <gl/Gl.h>
#include <gl/Glu.h>
...code...
I can compile it, but when I try and build the '.exe' file I get all these link errors. What am I doing wrong? I hardly have any experience using MS Visual C++ 6.0, because I've done all my application development using DJGPP C++ and using EditPlus as a text editor for my C++ code.
Thanks