Basic3D.lib(DBOMesh.obj) : error LNK2019: unresolved external symbol _D3DXCleanMesh@24 referenced in function "bool __cdecl MakeLODMeshFromMesh(struct sMesh *,int,struct sMesh * *)" (?MakeLODMeshFromMesh@@YA_NPAUsMesh@@HPAPAU1@@Z)
I have linked all the right folders, and shaved down errors from 22 to 1. Google has no provided no help at all. Here is my code below:
#define INITGUID
#include "DarkGDK.h"
#include <dxdiag.h>
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbDisableEscapeKey ( );
dbRandomize ( dbTimer ( ) );
dbLoadImage ( "backdrop.bmp", 1 );
dbSprite ( 1, 0, 0, 1 );
dbSetImageColorKey ( 255, 0, 255 );
for ( int i = 2; i < 30; i++ )
{
dbCreateAnimatedSprite ( i, "sprite.bmp", 4, 4, i );
dbSprite ( i, dbRnd ( 640 ), -dbRnd ( 1500 ), i );
}
while ( LoopGDK ( ) )
{
for ( int i = 2; i < 30; i++ )
{
dbMoveSprite ( i, -2 );
dbPlaySprite ( i, 1, 16, 60 );
if ( dbSpriteY ( i ) > 500 )
dbSprite ( i, dbRnd ( 640 ), -dbRnd ( 1500 ), i );
}
// here we check if the escape key has been pressed, when it has
// we will break out of the loop
if ( dbEscapeKey ( ) )
break;
// here we make a call to update the contents of the screen
dbSync ( );
}
// when the user presses escape the code will break out to this location
// and we can free up any previously allocated resources
// delete all the sprites
for ( int i = 1; i < 30; i++ )
dbDeleteSprite ( i );
// delete the backdrop image
dbDeleteImage ( 1 );
// and now everything is ready to return back to Windows
return;
}