Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: 1.0 RC build problems  (Read 990 times)

CaseyB

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 31
    • View Profile
1.0 RC build problems
« on: December 03, 2006, 07:29:30 PM »

I am using the ois_vc8.sln and it'd having trouble building the Demo_FFTest.  It says it can't find ois{_d}.lib, so I edited the project properties to point to ois_static{_d}.lib and it couldn't find that because it was looking in ../../dll, so I changed that to ../../lib, but now I am getting linker errors.
Code: [Select]
------ Build started: Project: Demo_FFTest, Configuration: Release Win32 ------
Linking...
FFConsoleDemo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const OIS::KeyListener::`vftable'" (__imp_??_7KeyListener@OIS@@6B@) referenced in function "public: __thiscall EventHandler::EventHandler(void)" (??0EventHandler@@QAE@XZ)
FFConsoleDemo.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall OIS::JoyStickListener::sliderMoved(class OIS::JoyStickEvent const &,int)" (?sliderMoved@JoyStickListener@OIS@@UAE_NABVJoyStickEvent@2@H@Z)
FFConsoleDemo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const OIS::JoyStickListener::`vftable'" (__imp_??_7JoyStickListener@OIS@@6B@) referenced in function "public: virtual __thiscall EventHandler::~EventHandler(void)" (??1EventHandler@@UAE@XZ)
FFConsoleDemo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::map<enum OIS::Effect::EForce,enum OIS::Effect::EType,struct std::less<enum OIS::Effect::EForce>,class std::allocator<struct std::pair<enum OIS::Effect::EForce const ,enum OIS::Effect::EType> > > const & __thiscall OIS::ForceFeedback::getSupportedEffects(void)const " (__imp_?getSupportedEffects@ForceFeedback@OIS@@QBEABV?$map@W4EForce@Effect@OIS@@W4EType@23@U?$less@W4EForce@Effect@OIS@@@std@@V?$allocator@U?$pair@$$CBW4EForce@Effect@OIS@@W4EType@23@@std@@@6@@std@@XZ) referenced in function "void __cdecl doStartup(void)" (?doStartup@@YAXXZ)
FFConsoleDemo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class OIS::InputManager * __cdecl OIS::InputManager::createInputSystem(class std::multimap<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > &)" (__imp_?createInputSystem@InputManager@OIS@@SAPAV12@AAV?$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) referenced in function "void __cdecl doStartup(void)" (?doStartup@@YAXXZ)
FFConsoleDemo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl OIS::InputManager::destroyInputSystem(class OIS::InputManager *)" (__imp_?destroyInputSystem@InputManager@OIS@@SAXPAV12@@Z) referenced in function _main
Release/DemoFFTest.exe : fatal error LNK1120: 6 unresolved externals
Build log was saved at "file://c:\Development\ois-1.0RC1\Win32\DemoFFTest\Release\BuildLog.htm"
Demo_FFTest - 7 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
1.0 RC build problems
« Reply #1 on: December 03, 2006, 09:24:46 PM »

Ther is no realy reason to build that demo, as it doesn't really do anything that useful (I still havn't had time to port over the old CEGUI force feedback demo to that console app). However, that error is odd, and I'm not really following the changes you made to the build.

To build that demo, it uses OIS in the dll form, so it links against the dynamic lib, not the static lib. And it is setup that way with the OIS_DYNAMIC define before OIS includes. To build it, I suggest you get a fresh copy, then go to batch build and select all targets (not the 64 bit targets). And it should build fine.
Logged

CaseyB

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 31
    • View Profile
1.0 RC build problems
« Reply #2 on: December 04, 2006, 06:56:29 AM »

Ok, I'll give it a try!  Thanks!
Logged