Problem when compiling a _Release_ version of my code
hello,
I''ve got this problem in MS VC++6, whereby it compiles fine when set to Debug mode, but when i switch it to build a Release version I get an error. The error message is:
Linking...
Model.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
Release/Triangle.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I think therefore the problem has something to do with the function below, because the error message makes a reference to a name in it. Has it got something to do with the project settings? Maybe some library not being included when set to Release mode? The settings just look so confusing, could someone help me with this? I dont know where to start.
Thanks in advance,
- kind regards
AUX_RGBImageRec* Model::LoadBMP(char *Filename)
{
FILE *File=NULL;
if (!Filename) // Make sure a filename was given
{
return NULL; // If not return NULL
}
File=fopen(Filename, "r"); // Open the file for READ access
if (File) // Does the file exist?
{
fclose(File); // Close the handle
return auxDIBImageLoad(Filename); // Load the Bitmap and return a Pointer
}
return NULL;
}
link with glaux.lib
---visit #directxdev on afternet <- not just for directx, despite the name
Go to the settings menu option under the project menu. Then click on the link tab I believe. Add GLaux.lib to the front of the line.
I asked one of the Black Robes why the Deceiver wasn''''t going to stay to defend the dam, and he tersely replied: "He goes to warn the Emperor; moving through odd angles, faster than any man, and if unobserved, much faster than that."
I asked one of the Black Robes why the Deceiver wasn''''t going to stay to defend the dam, and he tersely replied: "He goes to warn the Emperor; moving through odd angles, faster than any man, and if unobserved, much faster than that."
I asked one of the Black Robes why the Deceiver wasn't going to stay to defend the dam, and he tersely replied: "He goes to warn the Emperor; moving through odd angles, faster than any man, and if unobserved, much faster than that."Elemental Engine: ryan_lurvey.tripod.com/engine.html
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement