How to create a texture from a bmp file?

Hi all:
I want to create a texture from a bmp file, I got the following code from NeHe’s tutorial.

Topology error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function “struct _AUX_RGBImageRec * __cdecl LoadBMP(char *)” (?LoadBMP@@YAPAU_AUX_RGBImageRec@@PAD@Z)

and

Topology fatal error LNK1120: 1 unresolved externals

Does anybody know why is this? Or may be have some other better solution to read a bmp file into the texture array please???
Thanks very much!

the AUX lib is very outdated.
maybe try this :
http://users.ox.ac.uk/~orie1330/bmploader.html

or search for “simple BMP loader”