Results 1 to 5 of 5

Thread: Linking Error???

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    fsad
    Posts
    7

    Linking Error???

    I am trying to compile the source code from the 1st nehe.gamedev.net tutorials in Visual C++ but I get:

    Linking...
    LINK : fatal error LNK1104: cannot open file "and.obj"
    Error executing link.exe.

    I have added the name of the htree libraries to the link list, and have put gl.h, glaux.h glu.h in the include/gl dir??

    Whats wrong???

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: Linking Error???

    This looks like an compiler error not an openGL error.

    What is happening, the compilter is trying to create or open a file called "and.obj" and the computer will not let it.

    Check to see if your hard drive is full?
    Check and see if there is already a file called "and.obj" on your computer. You may need to delete it.
    Check the path settings in the compiler.

    Originally posted by lost-:
    I am trying to compile the source code from the 1st nehe.gamedev.net tutorials in Visual C++ but I get:

    Linking...
    LINK : fatal error LNK1104: cannot open file "and.obj"
    Error executing link.exe.

    I have added the name of the htree libraries to the link list, and have put gl.h, glaux.h glu.h in the include/gl dir??

    Whats wrong???

  3. #3
    Guest

    Re: Linking Error???

    No, it's the linker trying to link a file that it thinks that has been compiled.

  4. #4
    Member Contributor
    Join Date
    Jul 2002
    Location
    Seri Kembangan, Selangor, Malaysia
    Posts
    92

    Re: Linking Error???

    Try to include the library files in the vc..
    Press Alt+F7
    click on Link
    Type opengl32.lib glut32.lib glu32.lib glaux.lib
    and try to execute it...

    if still cann't
    try to rebuilt the project...
    click on Build..
    click on Rebuild all

  5. #5
    Junior Member Newbie
    Join Date
    May 2003
    Location
    Mississauga, Ontario, Canada
    Posts
    3

    Re: Linking Error???

    I realize this is centuries after the problem was posted, but here's the exact solution:

    If you cut+pasted the list of linker files NeHe suggested in Tutorial 1 you might also have copied over the word "and".

    Ex: OpenGL32.lib GLu32.lib [and] GLaux.lib

    The [and] shouldn't be there That's the and.obj VC++ keeps looking for.

Similar Threads

  1. Linking...Error
    By TheClick in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-07-2004, 12:34 AM
  2. Linking Error
    By TechMaster in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-21-2002, 08:55 PM
  3. Linking error
    By yang22 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-15-2002, 12:33 PM
  4. linking error!!!
    By joey in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-15-2001, 08:57 PM
  5. linking error
    By imported_Markus_ in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-26-2000, 04:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean