LNK2028: unresolved token (0A0003FA) "extern "C"

Hey,
Yeah I'm at it again, I'm trying to compile a C++ DirectX project and having major issues (maybe not major but still) I keep getting the following compile error:

1
2
3
4
5
1>main.obj : error LNK2028: unresolved token (0A0003FA) "extern "C" long __stdcall D3DXCreateTextureFromFileW(struct IDirect3DDevice9 *,wchar_t const *,struct IDirect3DTexture9 * *)" (?D3DXCreateTextureFromFileW@@$$J212YGJPAUIDirect3DDevice9@@PB_WPAPAUIDirect3DTexture9@@@Z) referenced in function "struct IDirect3DTexture9 * * __cdecl LoadSurface(wchar_t const *,unsigned long)" (?LoadSurface@@$$FYAPAPAUIDirect3DTexture9@@PB_WK@Z)
1>main.obj : error LNK2028: unresolved token (0A000452) "extern "C" long __stdcall D3DXCreateSprite(struct IDirect3DDevice9 *,struct ID3DXSprite * *)" (?D3DXCreateSprite@@$$J18YGJPAUIDirect3DDevice9@@PAPAUID3DXSprite@@@Z) referenced in function "void __cdecl initD3D(struct HWND__ *)" (?initD3D@@$$FYAXPAUHWND__@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "extern "C" long __stdcall D3DXCreateTextureFromFileW(struct IDirect3DDevice9 *,wchar_t const *,struct IDirect3DTexture9 * *)" (?D3DXCreateTextureFromFileW@@$$J212YGJPAUIDirect3DDevice9@@PB_WPAPAUIDirect3DTexture9@@@Z) referenced in function "struct IDirect3DTexture9 * * __cdecl LoadSurface(wchar_t const *,unsigned long)" (?LoadSurface@@$$FYAPAPAUIDirect3DTexture9@@PB_WK@Z)
1>main.obj : error LNK2019: unresolved external symbol "extern "C" long __stdcall D3DXCreateSprite(struct IDirect3DDevice9 *,struct ID3DXSprite * *)" (?D3DXCreateSprite@@$$J18YGJPAUIDirect3DDevice9@@PAPAUID3DXSprite@@@Z) referenced in function "void __cdecl initD3D(struct HWND__ *)" (?initD3D@@$$FYAXPAUHWND__@@@Z)
1>F:\MyProject\DX\Debug\DX.exe : fatal error LNK1120: 4 unresolved externals


and I haven't got the foggiest, I've linked my project up to all the appropriate libs in the project/poperties/linker/additional dependancies but still it keeps giving me these errors, any help would be usefull thanks :)
Actually this doesn't matter I just figured out that I was linking with the x64 libs when I should have been linking with the x86 libs, all fixed :)
Topic archived. No new replies allowed.