I'm new to opengl and I'm trying to do a small texture example but when I tried nehe's example it didn't work so I got another example that compiled but failed to link , I'm using vc++ express 2005 and I added all the libraries(glut.lib ,glut32.lib , glaux.lib) to the 'C:\Program Files\Microsoft Visual Studio 8\VC\lib' so I need to know what have I missed , this is the code
#include "stdafx.h"
#include <windows.h> // Header File For Windows
#include <math.h> // Math Library Header File
#include <stdio.h> // Header File For Standard Input/Output
#include <glut.h>
#include <glaux.h>
AUX_RGBImageRec* LoadBMP(char *Filename) // Loads A Bitmap Image
{
FILE *File=NULL; // File Handle
if (!Filename) // Make Sure A Filename Was Given
{
return NULL; // If Not Return NULL
}
File=fopen(Filename,"r"); // Check To See If The File Exists
if (File) // Does The File Exist?
{
fclose(File); // Close The Handle
return auxDIBImageLoad(Filename); // Load The Bitmap And Return A Pointer
}
return NULL; // If Load Failed Return NULL
}
and here is the linking error:
Linking...
Texture.obj : error LNK2019: unresolved external symbol _auxDIBImageLoadW@4 referenced in function "struct _AUX_RGBImageRec * __cdecl LoadBMP(char *)" (?LoadBMP@@YAPAU_AUX_RGBImageRec@@PAD@Z)
C:\Documents and Settings\Abousafy\My Documents\Visual Studio 2005\Projects\Texture\Debug\Texture.exe : fatal error LNK1120: 1 unresolved externals
any ideas are welcomed cuz I really need to use textures in a project












