im using dev c++ and when i compile my code it gives me this message
31 main.cpp File' undeclared (first use this function) 31 main.cpp (Each undeclared identifier is reported only once 31 main.cpp for each function it appears in.) 38 main.cpp implicit declaration of functionint fopen(…)’
and here is my code for it
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
}
ok ur suggestion worked, but now its saying that glaux.h is missing? but if i compile other files it’ll work(other thatn the one im trying), is there anywhere i can download glaux and where would i put it, should i just try updating dev c++
Two words: GLU & GLUT
THe first is the utility library and the other is the utility toolkit. Also glut takes care of window initialization for you as well as other nice stuff. GLU should come with OpenGL I think, as for glut for windows go http://www.xmission.com/~nate .