jiangerlai
03-13-2003, 01:42 AM
In my program there is a function to load a BMP as follow:
AUX_RGBImageRec LoadBMP(LPCTSTR Filename)
{
FILE *File = NULL;
if ( !Filename ) {
return NULL;
};
File = fopen( Filename,"r" );
if ( File ) {
fclose( File );
return auxDIBImageLoad( Filename );
};
return NULL;
}
The compiling message:
Compiling...
EarthSatsCtl.cpp
Linking...
Creating library Debug/EarthSats.lib and object Debug/EarthSats.exp
EarthSatsCtl.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
Debug/EarthSats.ocx : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
EarthSats.ocx - 2 error(s), 0 warning(s)
I don't know how to correct ,erger for your help.
AUX_RGBImageRec LoadBMP(LPCTSTR Filename)
{
FILE *File = NULL;
if ( !Filename ) {
return NULL;
};
File = fopen( Filename,"r" );
if ( File ) {
fclose( File );
return auxDIBImageLoad( Filename );
};
return NULL;
}
The compiling message:
Compiling...
EarthSatsCtl.cpp
Linking...
Creating library Debug/EarthSats.lib and object Debug/EarthSats.exp
EarthSatsCtl.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
Debug/EarthSats.ocx : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
EarthSats.ocx - 2 error(s), 0 warning(s)
I don't know how to correct ,erger for your help.