Hello all, i am new to this forum, but i am working with sfml 1 year or more.
The problem is this:
sf::Thread kb(&gameInputMgr::keyboard, this);
sf::Thread ms(&gameInputMgr::mouse, this);
kb.launch();
ms.launch();
this above is inside :
void gameWindow::run()
Libs are compiled in VC++12 [STATIC]
I have even tried this:
gameInputMgr gInputMgr;
sf::Thread kb(&gInputMgr.keyboard, this);
sf::Thread ms(&gInputMgr.mouse, this);
&
sf::Thread kb(&gInputMgr.keyboard);
sf::Thread ms(&gInputMgr.mouse);
I have no idea whats wrong, there is my output log:
gameWindow.cpp
D:\Dark Orbit X\_shared\SFML-2.1\SFML/System/Thread.inl(48): error C2064: term does not evaluate to a function taking 1 arguments
D:\Dark Orbit X\_shared\SFML-2.1\SFML/System/Thread.inl(48) : while compiling class template member function 'void sf::priv::ThreadFunctorWithArg<F,A>::run(void)'
with
[
F=void (__thiscall gameInputMgr::* )(void)
, A=gameWindow *
]
D:\Dark Orbit X\_shared\SFML-2.1\SFML/System/Thread.inl(79) : see reference to class template instantiation 'sf::priv::ThreadFunctorWithArg<F,A>' being compiled
with
[
F=void (__thiscall gameInputMgr::* )(void)
, A=gameWindow *
]
gameWindow.cpp(29) : see reference to function template instantiation 'sf::Thread::Thread<void(__thiscall gameInputMgr::* )(void),gameWindow*>(F,A)' being compiled
with
[
F=void (__thiscall gameInputMgr::* )(void)
, A=gameWindow *
]
N3v3r h48 4ny pr0bl3ms w11h 11.