Archived

This topic is now archived and is closed to further replies.

deathtrap

Error when trying to compile and link NeHe tutorials.

Recommended Posts

Hi, I'm running into a problem when i try to compile your code in Lesson 01. The compiler error, actually a linker error is: LINK : fatal error LNK1104: cannot open file "and.obj" I have no idea what the problem is or where its originating. I'm using MS VC++ 6.0 . [edited by - deathtrap on March 17, 2003 9:45:34 PM]

Share this post


Link to post
Share on other sites
an object file will usually be created for most major .cpp files you have. So it may be an issue with a file names and.cpp, or a lack of it. But, that being, sometimes VC gets confused. Restart VC and tell it to tell it to do a clean rebuild. All these files will be deleted and it will recompile the entire project.

| - Project-X - my mega project.. getting warmer - | - adDeath - an ad blocker I made - | - email me - |

Share this post


Link to post
Share on other sites
quote:
Original post by deathtrap
The compiler error, actually a linker error is: LINK : fatal error LNK1104: cannot open file "and.obj"


Do you have a .cpp file named and? Have you modified the source code avaialble for download from NeHe''s site? (mean making your own header/source files?)
I did that as well... sometimes...this error comes when the file inclusion path in VC is not specified for partuclar files.
Please check the files that have been added to your project and try to compile the and.cpp(I assume that exists) BEFORE you use that in some other file(because the linker will require all the.obj files during linking)
Please correct me if I am wrong!

"Recovering Thinker"
Just do it!

Share this post


Link to post
Share on other sites
I didn''t add anything to the .cpp file. only headers included in it are the gl.h glu.h and glaux.h . the lesson01.cpp file is unmodified.

I also tried a clean rebuild and i''m still getting the error.

Share this post


Link to post
Share on other sites