Link to home
Start Free TrialLog in
Avatar of david-lee
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
Avatar of PieterVb
PieterVb
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of david-lee
david-lee

ASKER

I put .h file under include/gl folder
        .lib file under lib folders
under directory sdk/v6.1 as guided
        .dll under window/system32 folder
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i did install all libraries for glut like glut.h, glut32.lib. glut32.dll
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
1>Compiling...
1>Homework2.cpp
1>c:\users\aly\documents\visual studio 2008\projects\homework2\homework2\homework2.cpp(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\Documents\Visual Studio 2008\Projects\Homework2\Homework2\Debug\BuildLog.htm"
1>Homework2 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
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
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
what is the OpenGL Utility Toolkit (GLUT)? is that glut.h, glut32.lib and glut32.dll


the value of WindowsSdkDir? is C:\program files\microsoft SDKs\Windows\v6.1\include
                                                     C:\program files\microsoft SDKs\Windows\v6.1\lib