Results 1 to 4 of 4

Thread: error LNK2001

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2001
    Location
    minneapolis,MN,USA
    Posts
    13

    error LNK2001

    hi,
    i am novice to Open GL.i just got code from a web site, understood it, when i compile it , no errors are there, but when i try to execute the code its giving "error LNK2001 " , like its giving messages " unresolved external symbol _gluPerspective@32" ....

    thanks
    Ravi

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: error LNK2001

    I guess you mean you get this error after compilation, when you link it, it means that you have missed to include the opengl32.lib import library in your link "command" or what ever you do to compile your application. What compiler are you using ?

    Mikael

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: error LNK2001

    Hi,

    I think that you have missed to include the "glu32.lib"

    If you use MS VC, for me, you have 2 method for include this file :

    in the code, type :

    #pragma comment (lib,"glu32.lib")


    or, press Alt + F7 and add "glu32.lib" in the link options.

  4. #4
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: error LNK2001

    Sorry about that, of course it's glu32.lib, I guess I was sleeping or something.

    Mikael

Similar Threads

  1. error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
    By duck bong in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-19-2006, 08:26 AM
  2. error LNK2001; error LNK1120
    By $nooc in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-29-2006, 06:55 AM
  3. error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
    By locomo in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 12-01-2002, 06:01 AM
  4. error LNK2001: unresolved external symbol
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-17-2002, 11:12 PM
  5. Replies: 1
    Last Post: 12-04-2001, 12:42 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