Sign in to follow this  
konst3d

[SlimDX] Unresolved externals when building SlimDX.

Recommended Posts

Hi all. I've checked out the latest SlimDX revision, and trying to build it like described in this http://www.davidmillington.net/news/index.php/2009/12/07/building-your-own-slimdx-binary-from-svn article. I've got the following linker errors:
1>Controller.obj : error LNK2001: unresolved external symbol "extern "C" unsigned long __stdcall XInputGetBatteryInformation(unsigned long,unsigned char,struct _XINPUT_BATTERY_INFORMATION *)" (?XInputGetBatteryInformation@@$$J212YGKKEPAU_XINPUT_BATTERY_INFORMATION@@@Z)
1>Controller.obj : error LNK2001: unresolved external symbol "extern "C" unsigned long __stdcall XInputGetKeystroke(unsigned long,unsigned long,struct _XINPUT_KEYSTROKE *)" (?XInputGetKeystroke@@$$J212YGKKKPAU_XINPUT_KEYSTROKE@@@Z)
1>Controller.obj : error LNK2001: unresolved external symbol "extern "C" void __stdcall XInputEnable(int)" (?XInputEnable@@$$J14YGXH@Z)
1>d:\src\SlimDX\full\build\x86\Public\SlimDX.dll : fatal error LNK1120: 3 unresolved externals
If these 3 methods are commented out (Controller.cpp) then project builds without any errors. Any ideas what is wrong with these methods?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this