Results 1 to 6 of 6

Thread: error LNK2001: unresolved external symbol _auxDIBImageLoadA@4

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    15

    error LNK2001: unresolved external symbol _auxDIBImageLoadA@4

    hi, i am following nehe's tutorial on
    texture mapping and loading a bmp file
    whenver i do this and save it and compile, it compiles alright but gives me the link error that auxDIBImageLoad is an unresolved
    external symbol. Also if i comment
    out that line it compiles and links too

    if (File){

    fclose(File); //
    return auxDIBImageLoad(Filename);
    }
    any suggestions will be appreciated

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

    Re: error LNK2001: unresolved external symbol _auxDIBImageLoadA@4

    Do you have linked the glaux.lib?
    or have it?


    Originally posted by locomo:
    hi, i am following nehe's tutorial on
    texture mapping and loading a bmp file
    whenver i do this and save it and compile, it compiles alright but gives me the link error that auxDIBImageLoad is an unresolved
    external symbol. Also if i comment
    out that line it compiles and links too

    if (File){

    fclose(File); //
    return auxDIBImageLoad(Filename);
    }
    any suggestions will be appreciated

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    15

    Re: error LNK2001: unresolved external symbol _auxDIBImageLoadA@4

    Hi,
    I am using the glaux lib

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

    Re: error LNK2001: unresolved external symbol _auxDIBImageLoadA@4

    Have you include the glaux.h file?

    Do you have the correct version for your compiler?

    Originally posted by locomo:
    Hi,
    I am using the glaux lib

  5. #5
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    15

    Re: error LNK2001: unresolved external symbol _auxDIBImageLoadA@4

    hi,
    i am including glaux.h
    also i am using MS visual c++ version 6.0

  6. #6
    Member Newbie
    Join Date
    Nov 2002
    Posts
    33

    Re: error LNK2001: unresolved external symbol _auxDIBImageLoadA@4

    Hmm this can only mean you are not using the lib or the corect .h file, so to be sure (if you don't do it that way already) Use
    #pragma comment (lib, "glaux.lib") in the file where the function is used...

    Also be sure you put this statement and the #include for glaux.h after any #include "stdafx.h" statement as this cancels any previous includes etc.

    That's the only thing I can think of...

    Nick

Similar Threads

  1. Replies: 2
    Last Post: 06-03-2013, 03:14 AM
  2. 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
  3. Replies: 4
    Last Post: 02-04-2006, 08:16 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