DXUT Compile Errors

Started by
6 comments, last by Steve25 13 years, 8 months ago
A few days ago I heard about DXUT and looked into it. While it looks useful I haven't yet even managed to compile DXUTInit(). I've managed to fix a lot of my problems and it looked like it was going to compile until it gave me 107 errors. All of them seem to be in the .obj file so it gets so far in the compile and fails at the link stage. As there are so many errors I wasn't sure whether to post my entire output log or not but anyway here goes:

1>------ Build started: Project: DXUTTest, Configuration: Debug Win32 ------1>  Main.cpp1>DXUT.obj : error LNK2019: unresolved external symbol __imp__InitCommonControls@0 referenced in function "long __stdcall DXUTInit(bool,bool,wchar_t *,bool)" (?DXUTInit@@YGJ_N0PA_W0@Z)1>SDKwavefile.obj : error LNK2001: unresolved external symbol _DXTraceW@201>DXUTmisc.obj : error LNK2019: unresolved external symbol _DXTraceW@20 referenced in function "long __stdcall DXUTTrace(char const *,unsigned long,long,wchar_t const *,bool)" (?DXUTTrace@@YGJPBDKJPB_W_N@Z)1>DXUTgui.obj : error LNK2001: unresolved external symbol _DXTraceW@201>DXUTsettingsdlg.obj : error LNK2001: unresolved external symbol _DXTraceW@201>SDKmisc.obj : error LNK2001: unresolved external symbol _DXTraceW@201>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXQuaternionMultiply@12 referenced in function "public: struct D3DXQUATERNION __thiscall D3DXQUATERNION::operator*(struct D3DXQUATERNION const &)const " (??DD3DXQUATERNION@@QBE?AU0@ABU0@@Z)1>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXMatrixMultiply@12 referenced in function "public: long __thiscall CD3DArcBall::HandleMessages(struct HWND__ *,unsigned int,unsigned int,long)" (?HandleMessages@CD3DArcBall@@QAEJPAUHWND__@@IIJ@Z)1>DXUTgui.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@121>SDKmesh.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@121>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXMatrixTranslation@16 referenced in function "public: long __thiscall CD3DArcBall::HandleMessages(struct HWND__ *,unsigned int,unsigned int,long)" (?HandleMessages@CD3DArcBall@@QAEJPAUHWND__@@IIJ@Z)1>DXUTgui.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@161>SDKmesh.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@161>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXMatrixInverse@12 referenced in function "public: virtual void __thiscall CBaseCamera::SetViewParams(struct D3DXVECTOR3 *,struct D3DXVECTOR3 *)" (?SetViewParams@CBaseCamera@@UAEXPAUD3DXVECTOR3@@0@Z)1>SDKmesh.obj : error LNK2001: unresolved external symbol _D3DXMatrixInverse@121>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXMatrixLookAtLH@16 referenced in function "public: virtual void __thiscall CBaseCamera::SetViewParams(struct D3DXVECTOR3 *,struct D3DXVECTOR3 *)" (?SetViewParams@CBaseCamera@@UAEXPAUD3DXVECTOR3@@0@Z)1>SDKmisc.obj : error LNK2001: unresolved external symbol _D3DXMatrixLookAtLH@161>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXMatrixPerspectiveFovLH@20 referenced in function "public: virtual void __thiscall CBaseCamera::SetProjParams(float,float,float,float)" (?SetProjParams@CBaseCamera@@UAEXMMMM@Z)1>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXVec3Normalize@8 referenced in function "protected: void __thiscall CBaseCamera::UpdateVelocity(float)" (?UpdateVelocity@CBaseCamera@@IAEXM@Z)1>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXVec3TransformCoord@12 referenced in function "public: virtual void __thiscall CFirstPersonCamera::FrameMove(float)" (?FrameMove@CFirstPersonCamera@@UAEXM@Z)1>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXMatrixRotationYawPitchRoll@16 referenced in function "public: virtual void __thiscall CFirstPersonCamera::FrameMove(float)" (?FrameMove@CFirstPersonCamera@@UAEXM@Z)1>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXMatrixRotationQuaternion@8 referenced in function "public: struct D3DXMATRIX const * __thiscall CD3DArcBall::GetRotationMatrix(void)" (?GetRotationMatrix@CD3DArcBall@@QAEPBUD3DXMATRIX@@XZ)1>SDKmesh.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationQuaternion@81>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXQuaternionRotationMatrix@8 referenced in function "public: virtual void __thiscall CModelViewerCamera::SetViewParams(struct D3DXVECTOR3 *,struct D3DXVECTOR3 *)" (?SetViewParams@CModelViewerCamera@@UAEXPAUD3DXVECTOR3@@0@Z)1>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXCreateEffect@36 referenced in function "public: static long __stdcall CDXUTDirectionWidget::StaticOnD3D9CreateDevice(struct IDirect3DDevice9 *)" (?StaticOnD3D9CreateDevice@CDXUTDirectionWidget@@SGJPAUIDirect3DDevice9@@@Z)1>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DX10CreateEffectFromMemory@56 referenced in function "public: static long __stdcall CDXUTDirectionWidget::StaticOnD3D10CreateDevice(struct ID3D10Device *)" (?StaticOnD3D10CreateDevice@CDXUTDirectionWidget@@SGJPAUID3D10Device@@@Z)1>DXUTgui.obj : error LNK2001: unresolved external symbol _D3DX10CreateEffectFromMemory@561>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXMatrixScaling@16 referenced in function "public: long __thiscall CDXUTDirectionWidget::OnRender10(struct D3DXCOLOR,struct D3DXMATRIX const *,struct D3DXMATRIX const *,struct D3DXVECTOR3 const *)" (?OnRender10@CDXUTDirectionWidget@@QAEJUD3DXCOLOR@@PBUD3DXMATRIX@@1PBUD3DXVECTOR3@@@Z)1>DXUTgui.obj : error LNK2001: unresolved external symbol _D3DXMatrixScaling@161>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXMatrixRotationX@8 referenced in function "public: long __thiscall CDXUTDirectionWidget::OnRender10(struct D3DXCOLOR,struct D3DXMATRIX const *,struct D3DXMATRIX const *,struct D3DXVECTOR3 const *)" (?OnRender10@CDXUTDirectionWidget@@QAEJUD3DXCOLOR@@PBUD3DXMATRIX@@1PBUD3DXVECTOR3@@@Z)1>DXUTcamera.obj : error LNK2019: unresolved external symbol _D3DXVec3TransformNormal@12 referenced in function "protected: long __thiscall CDXUTDirectionWidget::UpdateLightDir(void)" (?UpdateLightDir@CDXUTDirectionWidget@@IAEJXZ)1>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DXCreateSprite@8 referenced in function "public: long __thiscall CDXUTDialogResourceManager::OnD3D9CreateDevice(struct IDirect3DDevice9 *)" (?OnD3D9CreateDevice@CDXUTDialogResourceManager@@QAEJPAUIDirect3DDevice9@@@Z)1>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DX10CreateSprite@12 referenced in function "public: long __thiscall CDXUTDialogResourceManager::OnD3D10ResizedSwapChain(struct ID3D10Device *,struct DXGI_SURFACE_DESC const *)" (?OnD3D10ResizedSwapChain@CDXUTDialogResourceManager@@QAEJPAUID3D10Device@@PBUDXGI_SURFACE_DESC@@@Z)1>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DXMatrixOrthoOffCenterLH@28 referenced in function "public: long __thiscall CDXUTDialog::DrawSprite10(class CDXUTElement *,struct tagRECT *,float)" (?DrawSprite10@CDXUTDialog@@QAEJPAVCDXUTElement@@PAUtagRECT@@M@Z)1>SDKmisc.obj : error LNK2001: unresolved external symbol _D3DXMatrixOrthoOffCenterLH@281>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DXCreateFontW@48 referenced in function "protected: long __thiscall CDXUTDialogResourceManager::CreateFont9(unsigned int)" (?CreateFont9@CDXUTDialogResourceManager@@IAEJI@Z)1>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DX10CreateFontW@48 referenced in function "protected: long __thiscall CDXUTDialogResourceManager::CreateFont10(unsigned int)" (?CreateFont10@CDXUTDialogResourceManager@@IAEJI@Z)1>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileExW@56 referenced in function "protected: long __thiscall CDXUTDialogResourceManager::CreateTexture9(unsigned int)" (?CreateTexture9@CDXUTDialogResourceManager@@IAEJI@Z)1>SDKmisc.obj : error LNK2001: unresolved external symbol _D3DXCreateTextureFromFileExW@561>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromResourceExW@60 referenced in function "protected: long __thiscall CDXUTDialogResourceManager::CreateTexture9(unsigned int)" (?CreateTexture9@CDXUTDialogResourceManager@@IAEJI@Z)1>SDKmisc.obj : error LNK2001: unresolved external symbol _D3DXCreateTextureFromResourceExW@601>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DX10CreateTextureFromFileW@24 referenced in function "protected: long __thiscall CDXUTDialogResourceManager::CreateTexture10(unsigned int)" (?CreateTexture10@CDXUTDialogResourceManager@@IAEJI@Z)1>SDKmisc.obj : error LNK2001: unresolved external symbol _D3DX10CreateTextureFromFileW@241>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DX10GetImageInfoFromFileW@16 referenced in function "protected: long __thiscall CDXUTDialogResourceManager::CreateTexture10(unsigned int)" (?CreateTexture10@CDXUTDialogResourceManager@@IAEJI@Z)1>SDKmisc.obj : error LNK2001: unresolved external symbol _D3DX10GetImageInfoFromFileW@161>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DX10CreateTextureFromResourceW@28 referenced in function "protected: long __thiscall CDXUTDialogResourceManager::CreateTexture10(unsigned int)" (?CreateTexture10@CDXUTDialogResourceManager@@IAEJI@Z)1>DXUTgui.obj : error LNK2019: unresolved external symbol _D3DX10GetImageInfoFromResourceW@20 referenced in function "protected: long __thiscall CDXUTDialogResourceManager::CreateTexture10(unsigned int)" (?CreateTexture10@CDXUTDialogResourceManager@@IAEJI@Z)1>DXUTres.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileInMemoryEx@60 referenced in function "long __stdcall DXUTCreateGUITextureFromInternalArray9(struct IDirect3DDevice9 *,struct IDirect3DTexture9 * *,struct _D3DXIMAGE_INFO *)" (?DXUTCreateGUITextureFromInternalArray9@@YGJPAUIDirect3DDevice9@@PAPAUIDirect3DTexture9@@PAU_D3DXIMAGE_INFO@@@Z)1>DXUTres.obj : error LNK2019: unresolved external symbol _D3DX10CreateTextureFromMemory@28 referenced in function "long __stdcall DXUTCreateGUITextureFromInternalArray10(struct ID3D10Device *,struct ID3D10Texture2D * *,struct D3DX10_IMAGE_INFO *)" (?DXUTCreateGUITextureFromInternalArray10@@YGJPAUID3D10Device@@PAPAUID3D10Texture2D@@PAUD3DX10_IMAGE_INFO@@@Z)1>DXUTres.obj : error LNK2019: unresolved external symbol _D3DX10GetImageInfoFromMemory@20 referenced in function "long __stdcall DXUTCreateGUITextureFromInternalArray10(struct ID3D10Device *,struct ID3D10Texture2D * *,struct D3DX10_IMAGE_INFO *)" (?DXUTCreateGUITextureFromInternalArray10@@YGJPAUID3D10Device@@PAPAUID3D10Texture2D@@PAUD3DX10_IMAGE_INFO@@@Z)1>DXUTres.obj : error LNK2019: unresolved external symbol _D3DXLoadMeshFromXInMemory@36 referenced in function "long __stdcall DXUTCreateArrowMeshFromInternalArray(struct IDirect3DDevice9 *,struct ID3DXMesh * *)" (?DXUTCreateArrowMeshFromInternalArray@@YGJPAUIDirect3DDevice9@@PAPAUID3DXMesh@@@Z)1>DXUTShapes.obj : error LNK2019: unresolved external symbol _D3DX10CreateMesh@32 referenced in function "long __cdecl CreateShapeMesh(struct ID3D10Device *,struct ID3DX10Mesh * *,struct VERTEX *,unsigned int,unsigned short *,unsigned int)" (?CreateShapeMesh@@YAJPAUID3D10Device@@PAPAUID3DX10Mesh@@PAUVERTEX@@IPAGI@Z)1>SDKmesh.obj : error LNK2001: unresolved external symbol _D3DX10CreateMesh@321>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSetConversionStatus@12 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetConversionStatus@12 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmReleaseContext@8 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetContext@4 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSetOpenStatus@8 referenced in function "void __cdecl ImeUi_SetState(unsigned long)" (?ImeUi_SetState@@YAXK@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSimulateHotKey@8 referenced in function "void __cdecl ImeUi_SetState(unsigned long)" (?ImeUi_SetState@@YAXK@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmAssociateContext@8 referenced in function "void __cdecl ImeUi_EnableIme(bool)" (?ImeUi_EnableIme@@YAX_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCandidateListA@16 referenced in function "bool __cdecl ImeUi_Initialize(struct HWND__ *,bool)" (?ImeUi_Initialize@@YA_NPAUHWND__@@_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCandidateListW@16 referenced in function "bool __cdecl ImeUi_Initialize(struct HWND__ *,bool)" (?ImeUi_Initialize@@YA_NPAUHWND__@@_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCompositionStringW@16 referenced in function "bool __cdecl ImeUi_Initialize(struct HWND__ *,bool)" (?ImeUi_Initialize@@YA_NPAUHWND__@@_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCompositionStringA@16 referenced in function "long __stdcall AW_ImmGetCompositionString(struct HIMC__ *,unsigned long,void *,unsigned long)" (?AW_ImmGetCompositionString@@YGJPAUHIMC__@@KPAXK@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _VerQueryValueA@16 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _GetFileVersionInfoA@16 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _GetFileVersionInfoSizeA@8 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetIMEFileNameA@12 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetVirtualKey@4 referenced in function "bool __cdecl ImeUi_IgnoreHotKey(struct tagMSG const *)" (?ImeUi_IgnoreHotKey@@YA_NPBUtagMSG@@@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSetCompositionStringW@24 referenced in function "void __cdecl ImeUi_FinalizeString(bool)" (?ImeUi_FinalizeString@@YAX_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmNotifyIME@16 referenced in function "void __cdecl ImeUi_FinalizeString(bool)" (?ImeUi_FinalizeString@@YAX_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetOpenStatus@4 referenced in function "void __cdecl CheckToggleState(void)" (?CheckToggleState@@YAXXZ)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmIsIME@4 referenced in function "void __cdecl CheckToggleState(void)" (?CheckToggleState@@YAXXZ)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetDefaultIMEWnd@4 referenced in function "void __cdecl ImeUi_ToggleLanguageBar(int)" (?ImeUi_ToggleLanguageBar@@YAXH@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXQuaternionNormalize@8 referenced in function "protected: void __thiscall CDXUTSDKMesh::TransformFrame(unsigned int,struct D3DXMATRIX *,double)" (?TransformFrame@CDXUTSDKMesh@@IAEXIPAUD3DXMATRIX@@N@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXQuaternionInverse@8 referenced in function "protected: void __thiscall CDXUTSDKMesh::TransformFrameAbsolute(unsigned int,double)" (?TransformFrameAbsolute@CDXUTSDKMesh@@IAEXIN@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXLoadMeshFromXW@32 referenced in function "public: long __thiscall CDXUTXFileMesh::Create(struct IDirect3DDevice9 *,wchar_t const *)" (?Create@CDXUTXFileMesh@@QAEJPAUIDirect3DDevice9@@PB_W@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXLoadMeshFromXof@32 referenced in function "public: long __thiscall CDXUTXFileMesh::Create(struct IDirect3DDevice9 *,struct ID3DXFileData *)" (?Create@CDXUTXFileMesh@@QAEJPAUIDirect3DDevice9@@PAUID3DXFileData@@@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXCreateVolumeTextureFromFileW@12 referenced in function "public: long __thiscall CDXUTXFileMesh::CreateMaterials(wchar_t const *,struct IDirect3DDevice9 *,struct _D3DXMATERIAL *,unsigned long)" (?CreateMaterials@CDXUTXFileMesh@@QAEJPB_WPAUIDirect3DDevice9@@PAU_D3DXMATERIAL@@K@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXCreateCubeTextureFromFileW@12 referenced in function "public: long __thiscall CDXUTXFileMesh::CreateMaterials(wchar_t const *,struct IDirect3DDevice9 *,struct _D3DXMATERIAL *,unsigned long)" (?CreateMaterials@CDXUTXFileMesh@@QAEJPB_WPAUIDirect3DDevice9@@PAU_D3DXMATERIAL@@K@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileW@12 referenced in function "public: long __thiscall CDXUTXFileMesh::CreateMaterials(wchar_t const *,struct IDirect3DDevice9 *,struct _D3DXMATERIAL *,unsigned long)" (?CreateMaterials@CDXUTXFileMesh@@QAEJPB_WPAUIDirect3DDevice9@@PAU_D3DXMATERIAL@@K@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXGetImageInfoFromFileW@8 referenced in function "public: long __thiscall CDXUTXFileMesh::CreateMaterials(wchar_t const *,struct IDirect3DDevice9 *,struct _D3DXMATERIAL *,unsigned long)" (?CreateMaterials@CDXUTXFileMesh@@QAEJPB_WPAUIDirect3DDevice9@@PAU_D3DXMATERIAL@@K@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXComputeNormals@8 referenced in function "public: long __thiscall CDXUTXFileMesh::SetFVF(struct IDirect3DDevice9 *,unsigned long)" (?SetFVF@CDXUTXFileMesh@@QAEJPAUIDirect3DDevice9@@K@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXComputeTangentFrameEx@64 referenced in function "public: long __thiscall CDXUTXFileMesh::SetVertexDecl(struct IDirect3DDevice9 *,struct _D3DVERTEXELEMENT9 const *,bool,bool,bool)" (?SetVertexDecl@CDXUTXFileMesh@@QAEJPAUIDirect3DDevice9@@PBU_D3DVERTEXELEMENT9@@_N22@Z)1>SDKmesh.obj : error LNK2019: unresolved external symbol _D3DXGetDeclLength@4 referenced in function "public: long __thiscall CDXUTXFileMesh::SetVertexDecl(struct IDirect3DDevice9 *,struct _D3DVERTEXELEMENT9 const *,bool,bool,bool)" (?SetVertexDecl@CDXUTXFileMesh@@QAEJPAUIDirect3DDevice9@@PBU_D3DVERTEXELEMENT9@@_N22@Z)1>SDKmisc.obj : error LNK2019: unresolved external symbol _D3DXCreateCubeTextureFromFileExW@52 referenced in function "public: long __thiscall CDXUTResourceCache::CreateCubeTextureFromFileEx(struct IDirect3DDevice9 *,wchar_t const *,unsigned int,unsigned int,unsigned long,enum _D3DFORMAT,enum _D3DPOOL,unsigned long,unsigned long,unsigned long,struct _D3DXIMAGE_INFO *,struct tagPALETTEENTRY *,structIDirect3DCubeTexture9 * *)" (?CreateCubeTextureFromFileEx@CDXUTResourceCache@@QAEJPAUIDirect3DDevice9@@PB_WIIKW4_D3DFORMAT@@W4_D3DPOOL@@KKKPAU_D3DXIMAGE_INFO@@PAUtagPALETTEENTRY@@PAPAUIDirect3DCubeTexture9@@@Z)1>SDKmisc.obj : error LNK2019: unresolved external symbol _D3DXCreateCubeTextureFromResourceExW@56 referenced in function "public: long __thiscall CDXUTResourceCache::CreateCubeTextureFromResourceEx(struct IDirect3DDevice9 *,struct HINSTANCE__ *,wchar_t const *,unsigned int,unsigned int,unsigned long,enum _D3DFORMAT,enum _D3DPOOL,unsigned long,unsigned long,unsigned long,struct _D3DXIMAGE_INFO *,struct tagPALETTEENTRY *,struct IDirect3DCubeTexture9 * *)" (?CreateCubeTextureFromResourceEx@CDXUTResourceCache@@QAEJPAUIDirect3DDevice9@@PAUHINSTANCE__@@PB_WIIKW4_D3DFORMAT@@W4_D3DPOOL@@KKKPAU_D3DXIMAGE_INFO@@PAUtagPALETTEENTRY@@PAPAUIDirect3DCubeTexture9@@@Z)1>SDKmisc.obj : error LNK2019: unresolved external symbol _D3DXCreateVolumeTextureFromFileExW@60 referenced in function "public: long __thiscall CDXUTResourceCache::CreateVolumeTextureFromFileEx(struct IDirect3DDevice9 *,wchar_t const *,unsigned int,unsigned int,unsigned int,unsigned int,unsigned long,enum _D3DFORMAT,enum _D3DPOOL,unsigned long,unsigned long,unsigned long,struct _D3DXIMAGE_INFO *,struct tagPALETTEENTRY *,struct IDirect3DVolumeTexture9 * *)" (?CreateVolumeTextureFromFileEx@CDXUTResourceCache@@QAEJPAUIDirect3DDevice9@@PB_WIIIIKW4_D3DFORMAT@@W4_D3DPOOL@@KKKPAU_D3DXIMAGE_INFO@@PAUtagPALETTEENTRY@@PAPAUIDirect3DVolumeTexture9@@@Z)1>SDKmisc.obj : error LNK2019: unresolved external symbol _D3DXCreateVolumeTextureFromResourceExW@64 referenced in function "public: long __thiscall CDXUTResourceCache::CreateVolumeTextureFromResourceEx(struct IDirect3DDevice9 *,struct HINSTANCE__ *,wchar_t const *,unsigned int,unsigned int,unsigned int,unsigned int,unsigned long,enum _D3DFORMAT,enum _D3DPOOL,unsigned long,unsigned long,unsigned long,struct _D3DXIMAGE_INFO *,struct tagPALETTEENTRY *,struct IDirect3DVolumeTexture9 * *)" (?CreateVolumeTextureFromResourceEx@CDXUTResourceCache@@QAEJPAUIDirect3DDevice9@@PAUHINSTANCE__@@PB_WIIIIKW4_D3DFORMAT@@W4_D3DPOOL@@KKKPAU_D3DXIMAGE_INFO@@PAUtagPALETTEENTRY@@PAPAUIDirect3DVolumeTexture9@@@Z)1>SDKmisc.obj : error LNK2019: unresolved external symbol _D3DXCreateFontIndirectW@12 referenced in function "public: long __thiscall CDXUTResourceCache::CreateFontIndirectW(struct IDirect3DDevice9 *,struct _D3DXFONT_DESCW const *,struct ID3DXFont * *)" (?CreateFontIndirectW@CDXUTResourceCache@@QAEJPAUIDirect3DDevice9@@PBU_D3DXFONT_DESCW@@PAPAUID3DXFont@@@Z)1>SDKmisc.obj : error LNK2019: unresolved external symbol _D3DXCreateEffectFromFileW@32 referenced in function "public: long __thiscall CDXUTResourceCache::CreateEffectFromFile(struct IDirect3DDevice9 *,wchar_t const *,struct _D3DXMACRO const *,struct ID3DXInclude *,unsigned long,struct ID3DXEffectPool *,struct ID3DXEffect * *,struct ID3DXBuffer * *)" (?CreateEffectFromFile@CDXUTResourceCache@@QAEJPAUIDirect3DDevice9@@PB_WPBU_D3DXMACRO@@PAUID3DXInclude@@KPAUID3DXEffectPool@@PAPAUID3DXEffect@@PAPAUID3DXBuffer@@@Z)1>SDKmisc.obj : error LNK2019: unresolved external symbol _D3DXCreateEffectFromResourceW@36 referenced in function "public: long __thiscall CDXUTResourceCache::CreateEffectFromResource(struct IDirect3DDevice9 *,struct HINSTANCE__ *,wchar_t const *,struct _D3DXMACRO const *,struct ID3DXInclude *,unsigned long,struct ID3DXEffectPool *,struct ID3DXEffect * *,struct ID3DXBuffer * *)" (?CreateEffectFromResource@CDXUTResourceCache@@QAEJPAUIDirect3DDevice9@@PAUHINSTANCE__@@PB_WPBU_D3DXMACRO@@PAUID3DXInclude@@KPAUID3DXEffectPool@@PAPAUID3DXEffect@@PAPAUID3DXBuffer@@@Z)1>SDKmisc.obj : error LNK2019: unresolved external symbol _D3DXCreateLine@8 referenced in function "public: long __thiscall CDXUTLineManager::OnCreatedDevice(struct IDirect3DDevice9 *)" (?OnCreatedDevice@CDXUTLineManager@@QAEJPAUIDirect3DDevice9@@@Z)1>SDKmisc.obj : error LNK2019: unresolved external symbol _D3DXSaveSurfaceToFileW@20 referenced in function "long __cdecl DXUTSnapD3D9Screenshot(wchar_t const *)" (?DXUTSnapD3D9Screenshot@@YAJPB_W@Z)1>SDKsound.obj : error LNK2019: unresolved external symbol _DirectSoundCreate8@12 referenced in function "public: long __thiscall CSoundManager::Initialize(struct HWND__ *,unsigned long)" (?Initialize@CSoundManager@@QAEJPAUHWND__@@K@Z)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioClose@8 referenced in function "public: long __thiscall CWaveFile::Open(wchar_t *,struct tWAVEFORMATEX *,unsigned long)" (?Open@CWaveFile@@QAEJPA_WPAUtWAVEFORMATEX@@K@Z)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioOpenW@12 referenced in function "public: long __thiscall CWaveFile::Open(wchar_t *,struct tWAVEFORMATEX *,unsigned long)" (?Open@CWaveFile@@QAEJPA_WPAUtWAVEFORMATEX@@K@Z)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioAscend@12 referenced in function "protected: long __thiscall CWaveFile::ReadMMIO(void)" (?ReadMMIO@CWaveFile@@IAEJXZ)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioRead@12 referenced in function "protected: long __thiscall CWaveFile::ReadMMIO(void)" (?ReadMMIO@CWaveFile@@IAEJXZ)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioDescend@16 referenced in function "protected: long __thiscall CWaveFile::ReadMMIO(void)" (?ReadMMIO@CWaveFile@@IAEJXZ)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioGetInfo@12 referenced in function "public: long __thiscall CWaveFile::ResetFile(void)" (?ResetFile@CWaveFile@@QAEJXZ)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioCreateChunk@12 referenced in function "public: long __thiscall CWaveFile::ResetFile(void)" (?ResetFile@CWaveFile@@QAEJXZ)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioSeek@12 referenced in function "public: long __thiscall CWaveFile::ResetFile(void)" (?ResetFile@CWaveFile@@QAEJXZ)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioSetInfo@12 referenced in function "public: long __thiscall CWaveFile::Read(unsigned char *,unsigned long,unsigned long *)" (?Read@CWaveFile@@QAEJPAEKPAK@Z)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioAdvance@12 referenced in function "public: long __thiscall CWaveFile::Read(unsigned char *,unsigned long,unsigned long *)" (?Read@CWaveFile@@QAEJPAEKPAK@Z)1>SDKwavefile.obj : error LNK2019: unresolved external symbol __imp__mmioWrite@12 referenced in function "public: long __thiscall CWaveFile::Close(void)" (?Close@CWaveFile@@QAEJXZ)1>C:\DXUTTest\Debug\DXUTTest.exe : fatal error LNK1120: 87 unresolved externals========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I'd appreciate any help with these errors or even a point in the right direction would be good. I've tried googling many of these but there's very few results (I hope I'm not the only one to have this). Thanks
Advertisement
Unresolved symbols like that are due to the linker not finding those functions in any of the libraries you specify for linking.

Assuming you're using Visual Studio, in Project Properties->Linker, you have to specify Additional Library paths to the appropriate libraries (the folder where the .lib files can be found), and include those appropriate libraries in Linker->Additional Dependencies.

For the DX and D3DX functions, take a look at the documentation for the functions. At the bottom of the page in the docs, it states what libraries have to be linked in.

Don't know what "ImeUi" is, but you'll have to link in some library for that also.

For instance, DXTrace is found in dxerr9.lib (if you're using DX9.0).

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

Quote:Original post by Buckeye
Unresolved symbols like that are due to the linker not finding those functions in any of the libraries you specify for linking.

Assuming you're using Visual Studio, in Project Properties->Linker, you have to specify Additional Library paths to the appropriate libraries (the folder where the .lib files can be found), and include those appropriate libraries in Linker->Additional Dependencies.

For the DX and D3DX functions, take a look at the documentation for the functions. At the bottom of the page in the docs, it states what libraries have to be linked in.

Don't know what "ImeUi" is, but you'll have to link in some library for that also.

For instance, DXTrace is found in dxerr9.lib (if you're using DX9.0).


With your help I've managed to get it down to 23 errors so thanks :). My output now looks like this:

1>------ Build started: Project: DXUTTest, Configuration: Debug Win32 ------1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSetConversionStatus@12 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetConversionStatus@12 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmReleaseContext@8 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetContext@4 referenced in function "long __cdecl ImeUi_ProcessMessage(struct HWND__ *,unsigned int,unsigned int,long &,bool *)" (?ImeUi_ProcessMessage@@YAJPAUHWND__@@IIAAJPA_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSetOpenStatus@8 referenced in function "void __cdecl ImeUi_SetState(unsigned long)" (?ImeUi_SetState@@YAXK@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSimulateHotKey@8 referenced in function "void __cdecl ImeUi_SetState(unsigned long)" (?ImeUi_SetState@@YAXK@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmAssociateContext@8 referenced in function "void __cdecl ImeUi_EnableIme(bool)" (?ImeUi_EnableIme@@YAX_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCandidateListA@16 referenced in function "bool __cdecl ImeUi_Initialize(struct HWND__ *,bool)" (?ImeUi_Initialize@@YA_NPAUHWND__@@_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCandidateListW@16 referenced in function "bool __cdecl ImeUi_Initialize(struct HWND__ *,bool)" (?ImeUi_Initialize@@YA_NPAUHWND__@@_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCompositionStringW@16 referenced in function "bool __cdecl ImeUi_Initialize(struct HWND__ *,bool)" (?ImeUi_Initialize@@YA_NPAUHWND__@@_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetCompositionStringA@16 referenced in function "long __stdcall AW_ImmGetCompositionString(struct HIMC__ *,unsigned long,void *,unsigned long)" (?AW_ImmGetCompositionString@@YGJPAUHIMC__@@KPAXK@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _VerQueryValueA@16 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _GetFileVersionInfoA@16 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _GetFileVersionInfoSizeA@8 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetIMEFileNameA@12 referenced in function "unsigned long __cdecl GetImeId(unsigned int)" (?GetImeId@@YAKI@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetVirtualKey@4 referenced in function "bool __cdecl ImeUi_IgnoreHotKey(struct tagMSG const *)" (?ImeUi_IgnoreHotKey@@YA_NPBUtagMSG@@@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmSetCompositionStringW@24 referenced in function "void __cdecl ImeUi_FinalizeString(bool)" (?ImeUi_FinalizeString@@YAX_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmNotifyIME@16 referenced in function "void __cdecl ImeUi_FinalizeString(bool)" (?ImeUi_FinalizeString@@YAX_N@Z)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetOpenStatus@4 referenced in function "void __cdecl CheckToggleState(void)" (?CheckToggleState@@YAXXZ)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmIsIME@4 referenced in function "void __cdecl CheckToggleState(void)" (?CheckToggleState@@YAXXZ)1>ImeUi.obj : error LNK2019: unresolved external symbol _ImmGetDefaultIMEWnd@4 referenced in function "void __cdecl ImeUi_ToggleLanguageBar(int)" (?ImeUi_ToggleLanguageBar@@YAXH@Z)1>SDKsound.obj : error LNK2019: unresolved external symbol _DirectSoundCreate8@12 referenced in function "public: long __thiscall CSoundManager::Initialize(struct HWND__ *,unsigned long)" (?Initialize@CSoundManager@@QAEJPAUHWND__@@K@Z)1>C:\DXUTTest\Debug\DXUTTest.exe : fatal error LNK1120: 22 unresolved externals========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Seems to be a lot on that ImeUi.obj..
This description says you need to link in Imm32.lib.

The DirectSound stuff is, if I remember correctly, in dsound.lib.

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

Quote:Original post by Buckeye
This description says you need to link in Imm32.lib.

The DirectSound stuff is, if I remember correctly, in dsound.lib.


That description says to include the Windows header but that's already done. Also surely if it couldn't find that method it would fail to compile?
EDIT: Problem overcome. Thank you for your help I appreciate it :)

[Edited by - Steve25 on August 15, 2010 9:33:48 AM]
Quote:if it couldn't find that method it would fail to compile?

There are two aspects to that - the method declaration and the method definition.

Headers "declare" the function, giving the compiler enough information to arrange the arguments to call the function properly and to handle return values (if any) properly. But the compiler doesn't care how the function works, it leaves a "blank" in the object file to be filled in with the address for actually calling the function.

The linker then goes through the object files, linking the actual addresses of the functions in the libraries to the "blanks" in the object files (or vice-versa, I suppose).

You included the headers, so the compiler knew how to arrange the code for calling and returning from the function, but didn't care where the call was going to.

The linker complained because it couldn't find the function anywhere to provide the address for the call.

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

Quote:Original post by Buckeye
Quote:if it couldn't find that method it would fail to compile?

There are two aspects to that - the method declaration and the method definition.

Headers "declare" the function, giving the compiler enough information to arrange the arguments to call the function properly and to handle return values (if any) properly. But the compiler doesn't care how the function works, it leaves a "blank" in the object file to be filled in with the address for actually calling the function.

The linker then goes through the object files, linking the actual addresses of the functions in the libraries to the "blanks" in the object files (or vice-versa, I suppose).

You included the headers, so the compiler knew how to arrange the code for calling and returning from the function, but didn't care where the call was going to.

The linker complained because it couldn't find the function anywhere to provide the address for the call.


Makes sense, I'll keep that in mind for the future :)

This topic is closed to new replies.

Advertisement