Jump to content
  • Advertisement
Sign in to follow this  
Ceres629

OpenGL GLUT problems

This topic is 4891 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm sorry if this is a silly question, but I am a beginner programmer and I just started to learn C++ and OpenGL. I am trying to use the NeHe wizard to make a openGL framework based on GLUT. The wizard produces all the code and as an example it is supposed automatically create a cube that can be rotated. However whenever I try to compile it (using visual c++ 6.0 on WinXP) I get the link error: Compiling... nehegl_glut.cpp Linking... LINK : fatal error LNK1104: cannot open file "NEHE_GLUT.obj" Error executing link.exe. Well I guess as it says it cant find the file NEHE_GLUT.obj but I don't know what to do about that... do I have to download it or something... I really have no idea :( Can anyone help? Thx.

Share this post


Link to post
Share on other sites
Advertisement
It looks like there is an error in the project file: it looks for nehe_glut.obj when, apparently, it should be looking for nehegl_glut.obj, produced by compiling nehegl_glut.cpp.

One way you might try to fix that might be to rename nehe_glut.cpp to nehegl_glut.cpp and twiddle the project file, or you could go in the output directory, change nehe_glut.obj to nehegl_glut.obj and see what happens.

Of course, I may be completely wrong.

Share this post


Link to post
Share on other sites
Okay I will give this a try and see what happens!

Thx for the quick response!

*edit*
Neither one of your suggestions worked unfortunately, I don't know why it says it can't open the file nehe_glut.obj because it is there in the project folder... and when i change the name to nehegl_glut.obj, it gives the same error and creates a new nehe_glut.obj.

Thx for trying to help anyway...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!