david-lee
asked on
Cannot open include file: 'GL/glut.h
I used visual c ++ express edition 2005. I run my program and i got a message above:Cannot open include file: 'GL/glut.h. can anyone help me how to setup work environment for visual c++ express edition2005
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i did install all libraries for glut like glut.h, glut32.lib. glut32.dll
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
1>Compiling...
1>Homework2.cpp
1>c:\users\aly\documents\v isual studio 2008\projects\homework2\ho mework2\ho mework2.cp p(7) : fatal error C1083: Cannot open include file: 'glut.h': No such file or directory
1>Build log was saved at "file://c:\Users\aly\Docum ents\Visua l Studio 2008\Projects\Homework2\Ho mework2\De bug\BuildL og.htm"
1>Homework2 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
1>Homework2.cpp
1>c:\users\aly\documents\v
1>Build log was saved at "file://c:\Users\aly\Docum
1>Homework2 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
ASKER
I put .h file(glut.h file) into this directory
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\ gl
then put .lib file into lib folders
C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib
then I put glut32.dll into windows/system32 directory folder
after that I open vs c++ 2005 to create new project. then I open properties from new project , go to linker , choose input and add GlU32.Lib OpenGL32.Lib freeglut.lib glut32.lib to Additional dependencies. I still got problem after those step. Can you give me an advice
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\
then put .lib file into lib folders
C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib
then I put glut32.dll into windows/system32 directory folder
after that I open vs c++ 2005 to create new project. then I open properties from new project , go to linker , choose input and add GlU32.Lib OpenGL32.Lib freeglut.lib glut32.lib to Additional dependencies. I still got problem after those step. Can you give me an advice
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it comes up different directory the last line is :
C:\ program files\microsoft visual studio 9.0\vc\bin
the file i put into gl folder is glut.h
lib folder is glut.lib
system32 folder is glut32.dll
h header file folder in gl is attached herewith.
This-gl-folder-with-h-header-fil.doc
C:\ program files\microsoft visual studio 9.0\vc\bin
the file i put into gl folder is glut.h
lib folder is glut.lib
system32 folder is glut32.dll
h header file folder in gl is attached herewith.
This-gl-folder-with-h-header-fil.doc
ASKER
what is the OpenGL Utility Toolkit (GLUT)? is that glut.h, glut32.lib and glut32.dll
ASKER
the value of WindowsSdkDir? is C:\program files\microsoft SDKs\Windows\v6.1\include
C:\program files\microsoft SDKs\Windows\v6.1\lib
ASKER
.lib file under lib folders
under directory sdk/v6.1 as guided
.dll under window/system32 folder