Skip to main content
gamedev.net
🔒 Locked

Linking errors !

Started by HDATA Apr 13, 2002 at 10:25 AM 1 replies 1.1k views
Original Post
HDATA
HDATA
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)
Puncy
Puncy
The unresolved externals are being caused by missing .cpp files (e.g. "CD3DApplication.cpp"), not missing library files. Of course they are there somewhere, but are not being located by the compiler, even though the headers are.

If you are using Visual C++, add them to the project by right clicking on the "source" folder in the file view and choosing "add files to folder". If that doesn''t work you could always try copying the .cpp files into the same directory as the project.
HDATA
HDATA
Hi Puncy,
Thanks for your reply ...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.