EDN Admin
Well-known member
I have encountered this error trying to compile a program from a tutorial
LNK2019: unresolved external symbol "void __cdecl initD3D(struct HWND__ *)".
I have removed all the errors on the program bar one and searching on the forums and all across google they all say similar things which i have done.
I have added the following entries against the project in Properties>Configuration Properties>VC++ Directories:
In the Include Directories - Crogram FilesMicrosoft DirectX SDK %28June 2010%29Include;$(IncludePath
In the Library Directories - Crogram FilesMicrosoft DirectX SDK %28June 2010%29Libx86;$(LibraryPath)
I have added these using macros (DXSDK_DIR) and by navigating directly to the folder but it makes no difference to the error message.
Under Properties>Configuration Properties>Linker>Input i have added the following:
In the Additional Dependencies - d3d9.lib;d3dx9.lib;%(AdditionalDependencies)
I have tried this on two separate computers (i sneakily installed it at work) but i get the same issue there as well
I am using Visual Studios 2010 and Directx SDK June 2010 both of which i downloaded from the official websites last week so i assume they are the latest version
I have tried using #include d3d9.h and #include d3d9x.lib as well as the pragma include command in the program itself (but not both at the same time) but i get the same message whichever one is used.
Is there anything else anyone can suggest. I realise the gist of the error message is that i am not pointing visual studios to the directx9 libraries but i have navigated to the folder exactly and the library files are definitely there so i dont see how
it cannot find them
View the full article
LNK2019: unresolved external symbol "void __cdecl initD3D(struct HWND__ *)".
I have removed all the errors on the program bar one and searching on the forums and all across google they all say similar things which i have done.
I have added the following entries against the project in Properties>Configuration Properties>VC++ Directories:
In the Include Directories - Crogram FilesMicrosoft DirectX SDK %28June 2010%29Include;$(IncludePath
In the Library Directories - Crogram FilesMicrosoft DirectX SDK %28June 2010%29Libx86;$(LibraryPath)
I have added these using macros (DXSDK_DIR) and by navigating directly to the folder but it makes no difference to the error message.
Under Properties>Configuration Properties>Linker>Input i have added the following:
In the Additional Dependencies - d3d9.lib;d3dx9.lib;%(AdditionalDependencies)
I have tried this on two separate computers (i sneakily installed it at work) but i get the same issue there as well
I am using Visual Studios 2010 and Directx SDK June 2010 both of which i downloaded from the official websites last week so i assume they are the latest version
I have tried using #include d3d9.h and #include d3d9x.lib as well as the pragma include command in the program itself (but not both at the same time) but i get the same message whichever one is used.
Is there anything else anyone can suggest. I realise the gist of the error message is that i am not pointing visual studios to the directx9 libraries but i have navigated to the folder exactly and the library files are definitely there so i dont see how
it cannot find them
View the full article