   link errors when creating release
  Hi. Im trying to create a release version of my program but im getting errors. Im using directx9, c++ in vs.net. And am creating the release by rebuilding the solution in release mode but get the following errors. Compiling...Vinyl.cppSlider.cppMySprite.cppMyMesh.cppMyMesh.cpp(72) : warning C4018: '<' : signed/unsigned mismatchMyGame.cppInput.cppEntryMain.cppEngine.cppDial.cppButton.cppBackgroundObjects.cppGenerating Code...Linking...Vinyl.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12BackgroundObjects.obj : error LNK2019: unresolved external symbol _D3DXMatrixMultiply@12 referenced in function "public: void __thiscall BackgroundObjects::Render(struct IDirect3DDevice9 *)" (?Render@BackgroundObjects@@QAEXPAUIDirect3DDevice9@@@Z)Button.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12Dial.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12Slider.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12Vinyl.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationY@8BackgroundObjects.obj : error LNK2019: unresolved external symbol _D3DXMatrixRotationY@8 referenced in function "public: void __thiscall BackgroundObjects::Render(struct IDirect3DDevice9 *)" (?Render@BackgroundObjects@@QAEXPAUIDirect3DDevice9@@@Z)Button.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationY@8Dial.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationY@8Slider.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationY@8Slider.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16Vinyl.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16BackgroundObjects.obj : error LNK2019: unresolved external symbol _D3DXMatrixTranslation@16 referenced in function "public: void __thiscall BackgroundObjects::Render(struct IDirect3DDevice9 *)" (?Render@BackgroundObjects@@QAEXPAUIDirect3DDevice9@@@Z)Button.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16Dial.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16EntryMain.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16Engine.obj : error LNK2019: unresolved external symbol _D3DXIntersect@40 referenced in function "public: bool __thiscall Engine::Pick(struct IDirect3DDevice9 *)" (?Pick@Engine@@QAE_NPAUIDirect3DDevice9@@@Z)Engine.obj : error LNK2019: unresolved external symbol _D3DXVec3Normalize@8 referenced in function "public: bool __thiscall Engine::Pick(struct IDirect3DDevice9 *)" (?Pick@Engine@@QAE_NPAUIDirect3DDevice9@@@Z)Engine.obj : error LNK2019: unresolved external symbol _D3DXVec3TransformNormal@12 referenced in function "public: bool __thiscall Engine::Pick(struct IDirect3DDevice9 *)" (?Pick@Engine@@QAE_NPAUIDirect3DDevice9@@@Z)Engine.obj : error LNK2019: unresolved external symbol _D3DXVec3TransformCoord@12 referenced in function "public: bool __thiscall Engine::Pick(struct IDirect3DDevice9 *)" (?Pick@Engine@@QAE_NPAUIDirect3DDevice9@@@Z)Engine.obj : error LNK2019: unresolved external symbol _D3DXMatrixInverse@12 referenced in function "public: bool __thiscall Engine::Pick(struct IDirect3DDevice9 *)" (?Pick@Engine@@QAE_NPAUIDirect3DDevice9@@@Z)Engine.obj : error LNK2019: unresolved external symbol _D3DXVec3Project@24 referenced in function "public: void __thiscall Engine::positionMouseForPicked(struct IDirect3DDevice9 *,struct D3DXVECTOR3)" (?positionMouseForPicked@Engine@@QAEXPAUIDirect3DDevice9@@UD3DXVECTOR3@@@Z)Engine.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: void __thiscall Engine::RunDecks(void)" (?RunDecks@Engine@@QAEXXZ)Engine.obj : error LNK2019: unresolved external symbol _D3DXCreateFont@12 referenced in function "public: __thiscall Engine::Engine(struct IDirect3DDevice9 *,int,int,struct HWND__ *)" (??0Engine@@QAE@PAUIDirect3DDevice9@@HHPAUHWND__@@@Z)EntryMain.obj : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "long __cdecl InitD3D(struct HWND__ *)" (?InitD3D@@YAJPAUHWND__@@@Z)EntryMain.obj : error LNK2019: unresolved external symbol _D3DXMatrixPerspectiveFovLH@20 referenced in function "void __cdecl SetupMatrices(void)" (?SetupMatrices@@YAXXZ)EntryMain.obj : error LNK2019: unresolved external symbol _D3DXMatrixLookAtLH@16 referenced in function "void __cdecl SetupMatrices(void)" (?SetupMatrices@@YAXXZ)MyGame.obj : error LNK2001: unresolved external symbol _D3DXMatrixLookAtLH@16Input.obj : error LNK2001: unresolved external symbol _c_dfDIMouseInput.obj : error LNK2001: unresolved external symbol _GUID_SysMouseInput.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboardInput.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboardInput.obj : error LNK2019: unresolved external symbol _DirectInput8Create@20 referenced in function "public: __thiscall Input::Input(struct HWND__ *)" (??0Input@@QAE@PAUHWND__@@@Z)Input.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8AMyMesh.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileA@12 referenced in function "public: __thiscall MyMesh::MyMesh(class std::basic_string,class std::allocator >,struct IDirect3DDevice9 *)" (??0MyMesh@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAUIDirect3DDevice9@@@Z)MySprite.obj : error LNK2001: unresolved external symbol _D3DXCreateTextureFromFileA@12MyMesh.obj : error LNK2019: unresolved external symbol _D3DXLoadMeshFromXA@32 referenced in function "public: __thiscall MyMesh::MyMesh(class std::basic_string,class std::allocator >,struct IDirect3DDevice9 *)" (??0MyMesh@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAUIDirect3DDevice9@@@Z)MySprite.obj : error LNK2019: unresolved external symbol _D3DXCreateSprite@8 referenced in function "public: __thiscall MySprite::MySprite(struct IDirect3DDevice9 *,char const *)" (??0MySprite@@QAE@PAUIDirect3DDevice9@@PBD@Z)Release/Spaceships.exe : fatal error LNK1120: 23 unresolved externalsAnyone know why these errors are apparent when creating the release and not when creating the debug version, and how to get rid?CheersStuart[/source]   
  Try, while in release mode, to go into your linker options and check if you link against D3DX. If you set some linker options while in debug mode they won't be set in release mode, so you might just have forgotten to link against D3D(X).   ;  Yeh thanks CTar, the linker options for release where not set correctly, thanks   