1. Include directory is changed to: C: \ Program Files 28 x86 % % 29 28 June 29 2010% % \ \ Microsoft DirectX SDK Include; $(IncludePath)
2. The library catalogue to: C: \ Program Files 29 \ Microsoft DirectX SDK 28 x86 % % % 2010% 28 June 29 \ Lib \ x86; $(LibraryPath); D: \ Microsoft Visual Studio \ VC98 \ Lib
3. Add in the additional dependencies:
D3dx9d. Lib
D3d9. Lib
D3dx11. Lib
Dxerr. Lib
Dxguid. Lib
Winmm. Lib
Comctl32. Lib
Then the program without prompt syntax error, hence debugging
1> -- -- -- -- -- - has started to generate: project: d3dpro, configuration: Debug Win32 -- -- -- -- -- --
1> D3dFramework. Obj: error LNK2019: cannot resolve __Init_thread_header external symbols, the symbol in the function "int __cdecl d3d9MessageLoop (bool (__cdecl *) (float, struct IDirect3DDevice9 *), struct IDirect3DDevice9 *)" (? D3d9MessageLoop @ @ YAHP6A_NMPAUIDirect3DDevice9 @ @ @ Z0 @ Z) referenced
1> D3dFramework. Obj: error LNK2019: cannot resolve __Init_thread_footer external symbols, the symbol in the function "int __cdecl d3d9MessageLoop (bool (__cdecl *) (float, struct IDirect3DDevice9 *), struct IDirect3DDevice9 *)" (? D3d9MessageLoop @ @ YAHP6A_NMPAUIDirect3DDevice9 @ @ @ Z0 @ Z) referenced
1> D3dFramework. Obj: error LNK2019: cannot resolve the external symbol "int __cdecl d3d9CHeckHardwareVP (struct IDirect3D9 *, enum _D3DDEVTYPE)" (? D3d9CHeckHardwareVP @ @ YAHPAUIDirect3D9 @ @ W4_D3DDEVTYPE @ @ @ Z), the symbol in the function "bool __cdecl d3d9Initial (struct HINSTANCE__ *, long (__stdcall *) (struct HWND__ *, unsigned int, unsigned int, long), int, int, Boolean, enum _D3DDEVTYPE, struct IDirect3DDevice9 * *)" (? D3d9Initial @ @ YA_NPAUHINSTANCE__ @ @ P6GJPAUHWND__ @ @ IIJ @ ZHH_NW4_D3DDEVTYPE @ @ PAPAUIDirect3DDevice9 @ @ @ Z) referenced
1> D3dFramework. Obj: error LNK2019: cannot resolve the external symbol @ _RTC_CheckStackVars @ 8, the symbol in the function "int __cdecl d3d9CheckHardwareVP (struct IDirect3D9 *, enum _D3DDEVTYPE)" (? D3d9CheckHardwareVP @ @ YAHPAUIDirect3D9 @ @ W4_D3DDEVTYPE @ @ @ Z) referenced
1> D3dFramework. Obj: error LNK2019: cannot resolve the external symbol @ __security_check_cookie @ 4, the symbol in the function "int __cdecl d3d9CheckHardwareVP (struct IDirect3D9 *, enum _D3DDEVTYPE)" (? D3d9CheckHardwareVP @ @ YAHPAUIDirect3D9 @ @ W4_D3DDEVTYPE @ @ @ Z) referenced
1> D3dFramework. Obj: error LNK2019: cannot resolve __RTC_CheckEsp external symbols, the symbol in the function "int __cdecl d3d9CheckHardwareVP (struct IDirect3D9 *, enum _D3DDEVTYPE)" (? D3d9CheckHardwareVP @ @ YAHPAUIDirect3D9 @ @ W4_D3DDEVTYPE @ @ @ Z) referenced
1> The main obj: error LNK2001: cannot resolve the external symbol of __RTC_CheckEsp
1> D3dFramework. Obj: error LNK2001: cannot resolve the external symbol of __RTC_InitBase
1> The main obj: error LNK2001: cannot resolve the external symbol of __RTC_InitBase
1> D3dFramework. Obj: error LNK2001: cannot resolve the external symbol of __RTC_Shutdown
1> The main obj: error LNK2001: cannot resolve the external symbol of __RTC_Shutdown
1> D3dFramework. Obj: error LNK2001: cannot resolve the external symbol of __Init_thread_epoch
1> D3dFramework. Obj: error LNK2019: cannot resolve ___security_cookie external symbols, the symbol in the function "int __cdecl d3d9CheckHardwareVP (struct IDirect3D9 *, enum _D3DDEVTYPE)" (? D3d9CheckHardwareVP @ @ YAHPAUIDirect3D9 @ @ W4_D3DDEVTYPE @ @ @ Z) referenced
1> D: \ visual studio 2017 \ Projects \ d3dpro \ Debug \ d3dpro exe: fatal error LNK1120:10 cannot resolve the external command
1> Generating project has been completed "d3dpro vcxproj" operations - failure,
==========: zero success, failure, latest 0, 0 skip==========
Do these cannot resolve the symbols what reason be? Because of what the library files or less because I wrote the CPP file have a mistake? Thanks for comment!
CodePudding user response:
You get to the Internet check those functions need library which is not good? If is a function of Windows MSDN usually have write rely on the library, the header fileCodePudding user response:
See you don't like Windows function oh these apis