wgois / OIS

Official OIS repository. Object oriented Input System
https://wgois.github.io/OIS/
zlib License
256 stars 86 forks source link

[Fixed] Can't compile on linux. #8

Closed ghost closed 8 years ago

ghost commented 8 years ago

I execute ./bootstrap && ./configure && make and get the following error:

make[1]: Entering directory `/run/media/sergio/RAZIEL/OIS/src' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../includes -I../includes -g -O2 -I/usr/X11R6/include -g -O2 -MT OISInputManager.lo -MD -MP -MF .deps/OISInputManager.Tpo -c -o OISInputManager.lo OISInputManager.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../includes -I../includes -g -O2 -I/usr/X11R6/include -g -O2 -MT OISInputManager.lo -MD -MP -MF .deps/OISInputManager.Tpo -c OISInputManager.cpp -fPIC -DPIC -o .libs/OISInputManager.o In file included from OISInputManager.cpp:23:0: ../includes/OISInputManager.h:207:17: error: cannot declare parameter '' to be of abstract type 'OIS::InputManager' InputManager& operator=(InputManager); ^ ../includes/OISInputManager.h:38:19: note: because the following virtual functions are pure within 'OIS::InputManager': class _OISExport InputManager ^ ../includes/OISInputManager.h:174:16: note: virtual void OIS::InputManager::_initialize(OIS::ParamList&) virtual void _initialize(ParamList &paramList) = 0;

andrewfenn commented 8 years ago

It's a bug in the current code base you need to edit that line to look like this:

InputManager& operator=(const InputManager&);

Otherwise you can look at my cmake fork available here

TheOnlyJoey commented 8 years ago

Will fix this with a couple of bugfixes we did internally this week

TheOnlyJoey commented 8 years ago

This is fixed in the latest version.