Original Post
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. Anyone know why these errors are apparent when creating the release and not when creating the debug version, and how to get rid? Cheers Stuart [/source]
Compiling...
Vinyl.cpp
Slider.cpp
MySprite.cpp
MyMesh.cpp
MyMesh.cpp(72) : warning C4018: '<' : signed/unsigned mismatch
MyGame.cpp
Input.cpp
EntryMain.cpp
Engine.cpp
Dial.cpp
Button.cpp
BackgroundObjects.cpp
Generating Code...
Linking...
Vinyl.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
BackgroundObjects.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@12
Dial.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
Slider.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
Vinyl.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationY@8
BackgroundObjects.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@8
Dial.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationY@8
Slider.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationY@8
Slider.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16
Vinyl.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16
BackgroundObjects.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@16
Dial.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16
EntryMain.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16
Engine.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@16
Input.obj : error LNK2001: unresolved external symbol _c_dfDIMouse
Input.obj : error LNK2001: unresolved external symbol _GUID_SysMouse
Input.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboard
Input.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboard
Input.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_IDirectInput8A
MyMesh.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@12
MyMesh.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 externals