OS:Windows 7 32 bit
IDE:Codeblocks | MinGW
Compiler:g++ 4.9.1
Got the sfml-master branch. I first tried to cmake a codeblocks project file. Worked with no errors. When i tried to install the generated project i got these errors
||=== Build: install in SFML (compiler: GNU GCC Compiler) ===|
C:\PROGRA~1\CODEBL~1\MinGW\i686-w64-mingw32\include\stdlib.h||In function 'long long int wtoll(const wchar_t*)':|
C:\PROGRA~1\CODEBL~1\MinGW\i686-w64-mingw32\include\stdlib.h|653|error: '_wtoi64' was not declared in this scope|
C:\PROGRA~1\CODEBL~1\MinGW\i686-w64-mingw32\include\stdlib.h||In function 'wchar_t* lltow(long long int, wchar_t*, int)':|
C:\PROGRA~1\CODEBL~1\MinGW\i686-w64-mingw32\include\stdlib.h|654|error: '_i64tow' was not declared in this scope|
C:\PROGRA~1\CODEBL~1\MinGW\i686-w64-mingw32\include\stdlib.h||In function 'wchar_t* ulltow(long long unsigned int, wchar_t*, int)':|
C:\PROGRA~1\CODEBL~1\MinGW\i686-w64-mingw32\include\stdlib.h|655|error: '_ui64tow' was not declared in this scope|
src\SFML\Network\CMakeFiles\sfml-network.dir\build.make|54|recipe for target 'src/SFML/Network/CMakeFiles/sfml-network.dir/Ftp.cpp.obj' failed|
CMakeFiles\Makefile2|254|recipe for target 'src/SFML/Network/CMakeFiles/sfml-network.dir/all' failed|
C:\Users\Student\Desktop\Sfml-master build\Makefile|116|recipe for target 'all' failed|
||=== Build failed: 6 error(s), 0 warning(s) (1 minute(s), 55 second(s)) ===|
Then under complete reassurance that it wasn't my IDE being weird, I installed directly from MinGW with a rebuilt MinGW makefile. Same errors.
going to try to include as much relevant details as possible:
my MinGW is installed in my codeblocks directory. programfiles/codeblocks/MinGW <----------- here
To get cmake to not return any errors i originally had to rename my mingw32 folder to MinGW |
I have this MinGW version :
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-win32/dwarf/Im using this one so i get full c++ 11 support.
I also remember having to copy libwinpthread-1.dll to the cmake/lib directory because it was giving me that error ever since i switched to that MinGW version."your computer does not have libwinpthread-1.dll " or something like that, it was IN my MinGW folder (which it had recognized) but just putting it in the cmake bin worked.
In the spoiler it says recipe target for "all" because i originally tried install. Then just tried all to see if it would fix (and i tried install from g++ cmd that returned the same error, so the "all" is irrelevant.)
I did search the error in the forum search but returned no results. any help is appreciated.