Help With Error

This is a discussion on Help With Error within the Game Programming forums, part of the General Programming Boards category; I'm doing Nehe's Tutorial Lesson 9, the one with the stars. I keep coming up with this error: Code: LINK ...

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Help With Error

    I'm doing Nehe's Tutorial Lesson 9, the one with the stars. I keep coming up with this error:

    Code:
    LINK : fatal error LNK1104: cannot open file "and.obj"
    I have no idea what it means. I've searched the entire source for and.obj but it's not there... I must be making a really stupid mistake. Anybody have an idea?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

    Re: Help With Error

    Originally posted by drdroid
    I'm doing Nehe's Tutorial Lesson 9, the one with the stars. I keep coming up with this error:

    Code:
    LINK : fatal error LNK1104: cannot open file "and.obj"
    I have no idea what it means. I've searched the entire source for and.obj but it's not there... I must be making a really stupid mistake. Anybody have an idea?
    Hmm...compilers for me...what Compiler?

    You need opengl32.lib, glu32.lib & glaux.lib...you may need to download these again from M$ if they arent working....

  3. #3
    _ Munkey01's Avatar
    Join Date
    Dec 2002
    Posts
    280
    Make sure you do not have that file currently open.

  4. #4
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    ..

    hmmmm... Well, I'm using Visual C++ and yes I did include thoughs libraries. Nothing seems to work.

  5. #5
    Shadow12345
    Guest
    delete the object file and rebuild

  6. #6
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Unhappy ...

    That's the problem... i don't know where it is.

  7. #7
    Shadow12345
    Guest
    and.obj probably doesn't exist, but one of the files that do exist must be referencing it somehow, that is why you delete all of the other project files except for your sources, headers, and workspace (.dsw, .dsp) files and then rebuild the project.

  8. #8
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    ..

    Ok, now I only get one error. But it's not a compiler error, it comes up when I run the program. Initialization Failed; what does this mean? I thought it usually had to do with the attachments of files that aren't there etc. But my bmp is there, anyone know whats wrong?

  9. #9
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    ..

    Nevermind, got it. Thanks for everybodies help.

  10. #10
    _ Munkey01's Avatar
    Join Date
    Dec 2002
    Posts
    280
    Attach it, I know I would like to see it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 09:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 12:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21