1
General / Re: problem compiling SFML 2.0 in cygwin
« on: June 10, 2016, 11:33:29 am »
I also have a
without it the error message is
#define _beginthreadex CreateThread
in the Config.hpp,without it the error message is
$ make
Scanning dependencies of target sfml-system
make[2]: Warnung: Datei „src/SFML/System/CMakeFiles/sfml-system.dir/depend.make“ hat hat in der Zukunft liegende Änderungszeit 0,65
[ 1%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.o
[ 2%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Err.cpp.o
[ 3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Lock.cpp.o
[ 3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Mutex.cpp.o
[ 4%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Sleep.cpp.o
[ 5%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/String.cpp.o
[ 6%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Thread.cpp.o
[ 7%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/ThreadLocal.cpp.o
[ 8%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Time.cpp.o
[ 9%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/FileInputStream.cpp.o
[ 10%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/MemoryInputStream.cpp.o
[ 11%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ClockImpl.cpp.o
[ 12%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/MutexImpl.cpp.o
[ 13%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/SleepImpl.cpp.o
[ 14%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ThreadImpl.cpp.o
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp: In Konstruktor »sf::priv::ThreadImpl::ThreadImpl(sf::Thread*)«:
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:42:111: Fehler: »_beginthreadex« wurde in diesem Gültigkeitsbereich nicht definiert
m_thread = reinterpret_cast<HANDLE>(_beginthreadex(NULL, 0, &ThreadImpl::entryPoint, owner, 0, &m_threadId));
^
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp: In statischer Elementfunktion »static unsigned int sf::priv::ThreadImpl::entryPoint(void*)«:
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:86:19: Fehler: »_endthreadex« wurde in diesem Gültigkeitsbereich nicht definiert
_endthreadex(0);
^
make[2]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/build.make:399: src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ThreadImpl.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:119: src/SFML/System/CMakeFiles/sfml-system.dir/all] Fehler 2
make: *** [Makefile:128: all] Fehler 2
Scanning dependencies of target sfml-system
make[2]: Warnung: Datei „src/SFML/System/CMakeFiles/sfml-system.dir/depend.make“ hat hat in der Zukunft liegende Änderungszeit 0,65
[ 1%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.o
[ 2%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Err.cpp.o
[ 3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Lock.cpp.o
[ 3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Mutex.cpp.o
[ 4%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Sleep.cpp.o
[ 5%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/String.cpp.o
[ 6%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Thread.cpp.o
[ 7%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/ThreadLocal.cpp.o
[ 8%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Time.cpp.o
[ 9%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/FileInputStream.cpp.o
[ 10%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/MemoryInputStream.cpp.o
[ 11%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ClockImpl.cpp.o
[ 12%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/MutexImpl.cpp.o
[ 13%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/SleepImpl.cpp.o
[ 14%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ThreadImpl.cpp.o
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp: In Konstruktor »sf::priv::ThreadImpl::ThreadImpl(sf::Thread*)«:
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:42:111: Fehler: »_beginthreadex« wurde in diesem Gültigkeitsbereich nicht definiert
m_thread = reinterpret_cast<HANDLE>(_beginthreadex(NULL, 0, &ThreadImpl::entryPoint, owner, 0, &m_threadId));
^
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp: In statischer Elementfunktion »static unsigned int sf::priv::ThreadImpl::entryPoint(void*)«:
/home/bau040628b/sfml/src/SFML/System/Win32/ThreadImpl.cpp:86:19: Fehler: »_endthreadex« wurde in diesem Gültigkeitsbereich nicht definiert
_endthreadex(0);
^
make[2]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/build.make:399: src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ThreadImpl.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:119: src/SFML/System/CMakeFiles/sfml-system.dir/all] Fehler 2
make: *** [Makefile:128: all] Fehler 2