When I add the line #include %26lt;gl\glaux.h%26gt; into my code it gives me an error telling me that there's no such file or directory, but it must be... could you please tell me how to get it working ? :D thx
P.S : i'm using Visual C++ 2oo8 Express Editon :D
C++ - Open GL problem , please help me :D?
Although your question needs a little bit more info to give a comprehensive answer, I can point you to the Internet's best place for learning OpenGL.
NeHe Productions: http://nehe.gamedev.net/
And check out his first lesson to get an insight on what might be the issue for your problem. Perhaps you haven't put all the libraries, etc.
See: http://nehe.gamedev.net/data/lessons/les...
Reply:While I am not myself on Windows and so wouldn't be using Visual C++, I do have a suggestion to offer. in essence the pointy brackets, %26lt;%26gt;, tell your compiler to look in the default include directory. This means the directory which your Visual C++ compiler uses. Look in whatever the Visual C++ folder is in Program Files. You should find bin, include and lib folders. Those are the ones. Make sure that the gl folder is in that particular include directory. If not, copy it there.
Remember, %26lt;%26gt; means look in the default include directory. "" means look in the current directory where the program being compiled is. You can usually add an -I option for the compiler which also tells it to look in any given directory. I would read whatever your OpenGL documentation says about it and whatever your Visual C++ documentation says about adding it to a project.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment