PDA

View Full Version : Linking error in Visual Studio c++ 2008 Express ed



sudheer
03-29-2011, 11:21 PM
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 ==========

mobeen
03-30-2011, 01:25 AM
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.