Results 1 to 4 of 4

Thread: Linker error

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2002
    Posts
    3

    Linker error

    I'm getting something that I think is pretty crazy, and I dunno how to fix it.

    First, I got 'LINK : fatal error LNK1104: cannot open file "opengl32.dll"' and I figured that I just hadn't specified where opengl32.dll was.

    So I checked my VC++6.0 directory settings, and since the FAQ here said that opengl32.dll should be in the system directory, I looked to see if that directory was listed. Well, it was listed under executables but nothing else, so I added it to the lib directory settings, and then got 'c:\windows\system32\opengl32.dll : fatal error LNK1136: invalid or corrupt file'.

    So what's that about? Have I done something wrong? Is something wrong with my opengl32.dll?

    I'm using Visual Studio 6.0 on WindowsXP with latest nVidia Detonator XP drivers (which I assume comes with OpenGL dlls) and haven't downloaded anything else for OpenGL.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Posts
    370

    Re: Linker error

    You CAN'T link to a .dll! That would make no sense. You use a .dll at executable time, NOT compile time.

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Linker error

    You link with opengl32.lib which is the import library for opengl32.dll.

  4. #4
    Junior Member Newbie
    Join Date
    Jul 2002
    Posts
    3

    Re: Linker error

    heh, yeah. I noticed it soon after having posted. I was being moronic or something.

Similar Threads

  1. Linker error
    By Zhugie in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-18-2007, 12:29 PM
  2. Linker error
    By Loffen in forum OpenGL: Windows
    Replies: 1
    Last Post: 08-19-2005, 04:53 AM
  3. Linker Error
    By Suf in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-16-2002, 08:43 AM
  4. linker error need help!!!!!!!!!!!!!!!!!!!!!!!
    By incus in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-17-2002, 10:31 PM
  5. Linker Error
    By denisroi in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 08-04-2000, 02:04 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