I have a problem with using threads.
I want to use the function wallai2 but when i want to use it as a parameter with reference it sents me a bunch of errors:
C:\SFML-2.5.1\include\SFML\System\Thread.inl||In instantiation of 'void sf::priv::ThreadFunctor<T>::run() [with T = void (ai::*)()]':|
C:\Users\catal\Desktop\Imp\codeblocks\txtgame\src\map1.cpp|221|required from here|
C:\SFML-2.5.1\include\SFML\System\Thread.inl|39|error: must use '.*' or '->*' to call pointer-to-member function in '((sf::priv::ThreadFunctor<void (ai::*)()>*)this)->sf::priv::ThreadFunctor<void (ai::*)()>::m_functor (...)', e.g. '(... ->* ((sf::priv::ThreadFunctor<void (ai::*)()>*)this)->sf::priv::ThreadFunctor<void (ai::*)()>::m_functor) (...)'
And
sf::Thread t1(&wallai2); goes to this: include\Joc.h|110|error: expected identifier before '&' token|
Down are the ensential files.