Original Post
Hi there,
I added below libraries to my project:
d3dx8.lib d3dxof.lib d3d8.lib dxguid.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib uuid.lib advapi32.lib
But i got link errors !!!
How can i solve it ?
Linking...
Viewer.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CD3DApplication::Run(void)" (?Run@CD3DApplication@@UAEHXZ)
Viewer.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CD3DApplication::Create(struct HINSTANCE__ *)" (?Create@CD3DApplication@@UAEJPAUHINSTANCE__@@@Z)
Viewer.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CD3DApplication:
ause(int)" (?Pause@CD3DApplication@@UAEXH@Z)
Viewer.obj : error LNK2001: unresolved external symbol "protected: virtual long __thiscall CD3DApplication::AdjustWindowForChange(void)" (?AdjustWindowForChange@CD3DApplication@@MAEJXZ)
Viewer.obj : error LNK2001: unresolved external symbol "public: __thiscall CD3DFont::CD3DFont(char *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PADKK@Z)
uiAnimation.obj : error LNK2001: unresolved external symbol "public: __thiscall CD3DFont::CD3DFont(char *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PADKK@Z)
Viewer.obj : error LNK2001: unresolved external symbol "public: __thiscall CD3DApplication::CD3DApplication(void)" (??0CD3DApplication@@QAE@XZ)
Viewer.obj : error LNK2001: unresolved external symbol "public: __thiscall CD3DFont::~CD3DFont(void)" (??1CD3DFont@@QAE@XZ)
uiAnimation.obj : error LNK2001: unresolved external symbol "public: __thiscall CD3DFont::~CD3DFont(void)" (??1CD3DFont@@QAE@XZ)
Viewer.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char *,unsigned long)" (?DrawTextA@CD3DFont@@QAEJMMKPADK@Z)
uiAnimation.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char *,unsigned long)" (?DrawTextA@CD3DFont@@QAEJMMKPADK@Z)
Viewer.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice8 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice8@@@Z)
uiAnimation.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice8 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice8@@@Z)
Viewer.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::RestoreDeviceObjects(void)" (?RestoreDeviceObjects@CD3DFont@@QAEJXZ)
uiAnimation.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::RestoreDeviceObjects(void)" (?RestoreDeviceObjects@CD3DFont@@QAEJXZ)
Viewer.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::InvalidateDeviceObjects(void)" (?InvalidateDeviceObjects@CD3DFont@@QAEJXZ)
uiAnimation.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::InvalidateDeviceObjects(void)" (?InvalidateDeviceObjects@CD3DFont@@QAEJXZ)
Viewer.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::DeleteDeviceObjects(void)" (?DeleteDeviceObjects@CD3DFont@@QAEJXZ)
uiAnimation.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::DeleteDeviceObjects(void)" (?DeleteDeviceObjects@CD3DFont@@QAEJXZ)
Viewer.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall CD3DApplication::MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@CD3DApplication@@UAEJPAUHWND__@@IIJ@Z)
Utility.obj : error LNK2001: unresolved external symbol "long __cdecl DXUtil_FindMediaFile(char *,char *)" (?DXUtil_FindMediaFile@@YAJPAD0@Z)
Viewer.exe : fatal error LNK1120: 14 unresolved externals
Error executing link.exe.
Viewer.exe - 22 error(s), 0 warning(s)