bmp files

I am trying to read pixels from a .bmp file, and the blasted book I have gives two (both not working) syntax versions of a read utility.

int readBmpFile( char * fname );
and
int readBMPFile( string fname );

they both compile on visual c++ but neither of them will link properly, any assistance would be great!

readBmpFile is not a OpenGL/glu or glut function. You must link to the library that has it.

Try using

AUX_RGBImageRec* auxDIBImageLoad(char* Filename)

It’s a really easy way for handling BMPs.
Just for knowledge sake, I suggest to find infos also on DIBs and ResourceFunctions…

rIO http://www.spinningkids.org/umine