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 2 of 2

Thread: Linking error in Visual Studio c++ 2008 Express ed

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2011
    Location
    Karnataka, India
    Posts
    2

    Linking error in Visual Studio c++ 2008 Express ed

    Dear Sir,

    When i build my openGL project i get the following error.In this project i am mapping bmp image as texture on the rotating cube. This code i copied from the NeHe openGL site. I just changed the image file. Could any one help me please. Thanking you.
    error:
    1>Linking...
    1>gatlogo.obj : error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function "struct _AUX_RGBImageRec * __cdecl LoadBMP(char *)" (?LoadBMP@@YAPAU_AUX_RGBImageRec@@PAD@Z)
    1>C:\Documents and Settings\student.GAT-554D4B274A6\My Documents\Visual Studio 2008\Projects\gatprj\Debug\gatprj.exe : fatal error LNK1120: 1 unresolved externals
    1>Build log was saved at "file://c:\Documents and Settings\student.GAT-554D4B274A6\My Documents\Visual Studio 2008\Projects\gatprj\gatprj\Debug\BuildLog.htm"
    1>gatprj - 2 error(s), 1 warning(s)
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
    SudheerRao

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Mar 2009
    Location
    Singapore
    Posts
    802

    Re: Linking error in Visual Studio c++ 2008 Express ed

    This error could be resolved by adding glaux.lib to the linker-> input settings.
    You should not use aux library since it is no more supported.
    Regards,
    Mobeen

Posting Permissions

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