I can build the OIS_static_d.lib without problems in VC8. But when I switch it to build a DLL I get lots of unresolved external symbol errors. For example, here is a portion of my build log:
Linking...
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_ConstantForce
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_RampForce
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_SawtoothDown
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_SawtoothUp
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Sine
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Triangle
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Square
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Spring
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Inertia
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Damper
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Friction
Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_CustomForce
Win32InputManager.obj : error LNK2019: unresolved external symbol _DirectInput8Create@20 referenced in function "public: virtual void
__thiscall OIS::Win32InputManager::_initialize(class std::multimap,class
std::allocator >,class std::basic_string,class std::allocator >,struct
std::less,class std::allocator > >,class std::allocator,class std::allocator >
const ,class std::basic_string,class std::allocator > > > > &)"
(?_initialize@Win32InputManager@OIS@@UAEXAAV?$multimap@V?$basic_string
@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@
D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@
@@2@@std@@@Z)
Win32InputManager.obj : error LNK2001: unresolved external symbol
_IID_IDirectInput8A
Win32JoyStick.obj : error LNK2001: unresolved external symbol _c_dfDIJoystick2
Win32KeyBoard.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboard
Win32KeyBoard.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboard
Win32Mouse.obj : error LNK2001: unresolved external symbol _c_dfDIMouse2
Win32Mouse.obj : error LNK2001: unresolved external symbol _GUID_SysMouse
..\lib\OIS.dll : fatal error LNK1120: 19 unresolved externals
Is it possible for me to build as a DLL or do I have to use the SDK to do that?