Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: SOS: need for code to return image data from bmp

  1. #1
    Guest

    SOS: need for code to return image data from bmp

    well, this is NeHe's code for this function, I could't get it to work ( problem linking ( one unresolved external auxDIBImageLoadA@4)
    if someone has code equivalent to this please i would apreciate it:


    AUX_RGBImageRec *LoadBMP(char *Filename)
    {
    FILE *File=NULL;

    File=fopen(Filename,"r");

    if(File)
    {
    fclose(File);
    return auxDIBImageLoad(Filename);
    }
    return NULL;
    }

  2. #2
    Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Vancouver BC Canada
    Posts
    418

    Re: SOS: need for code to return image data from bmp

    You probably need to link in glaux.lib or some such thing (I don't know exactly, I don't do Windows).

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    24

    Re: SOS: need for code to return image data from bmp

    Yes, rts is right. You need to link glaux in.

    With VC++ 6.0 go to the project settings, and in the linker tab add glaux.lib to the list. It should work now.

  4. #4
    Guest

    Re: SOS: need for code to return image data from bmp

    OK Thanks a lot! You rule!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •