Won't compile, please halp

As far as I know I have set up everything correctly, according to the How to Compile wiki page. I have even compiled from source and run successfully before from this method, for some reason it is not working this time.

The error below is for the 0.C branch. When I try to compile the master branch, I get an error saying
‘nextafter’ is not a member of ‘std’

$ make NATIVE=win32 LOCALIZE=0 #define VERSION "0.C-6-g3a77179-dirty" g++ -Wall -Wextra -g --std=c++11 -MMD -c src/overmap.cpp -o objwin/overmap.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/json.cpp -o objwin/json.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/bodypart.cpp -o objwin/bodypart.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/mtypedef.cpp -o objwin/mtypedef.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/activity_handlers.cpp -o objwin/activity_handlers.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/simplexnoise.cpp -o objwin/simplexnoise.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/mission_fail.cpp -o objwin/mission_fail.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/worldfactory.cpp -o objwin/worldfactory.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/calendar.cpp -o objwin/calendar.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/live_view.cpp -o objwin/live_view.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/mod_manager_ui.cpp -o objwin/mod_manager_ui.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/mondeath.cpp -o objwin/mondeath.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/mission_place.cpp -o objwin/mission_place.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/missiondef.cpp -o objwin/missiondef.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/animation_tiles.cpp -o objwin/animation_tiles.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/character.cpp -o objwin/character.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/player.cpp -o objwin/player.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/newcharacter.cpp -o objwin/newcharacter.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/wincurse.cpp -o objwin/wincurse.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/mutation_data.cpp -o objwin/mutation_data.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/mod_manager.cpp -o objwin/mod_manager.o g++ -Wall -Wextra -g --std=c++11 -MMD -c src/advanced_inv.cpp -o objwin/advanced_inv.o In file included from src/advanced_inv.cpp:11:0: src/compatibility.h: In function ‘std::string to_string(T)’: src/compatibility.h:63:12: error: ‘to_string’ is not a member of ‘std’ return std::to_string(n); ^ src/compatibility.h:63:12: note: suggested alternative: src/compatibility.h:61:13: note: ‘to_string’ std::string to_string(T const n) ^ src/compatibility.h: In instantiation of ‘std::string to_string(T) [with T = double; typename std::enable_if<(((((std::is_arithmetic<_Tp>::value && (! std::is_same<T, bool>::value)) && (! std::is_same<T, wchar_t>::value)) && (! std::is_same<T, char>::value)) && (! std::is_same<T, char16_t>::value)) && (! std::is_same<T, char32_t>::value))>::type* <anonymous> = 0u; std::string = std::basic_string<char>]’: src/advanced_inv.cpp:159:81: required from here src/compatibility.h:64:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ src/compatibility.h: In instantiation of ‘std::string to_string(T) [with T = int; typename std::enable_if<(((((std::is_arithmetic<_Tp>::value && (! std::is_same<T, bool>::value)) && (! std::is_same<T, wchar_t>::value)) && (! std::is_same<T, char>::value)) && (! std::is_same<T, char16_t>::value)) && (! std::is_same<T, char32_t>::value))>::type* <anonymous> = 0u; std::string = std::basic_string<char>]’: src/advanced_inv.cpp:161:58: required from here src/compatibility.h:64:1: warning: no return statement in function returning non-void [-Wreturn-type] src/compatibility.h: In instantiation of ‘std::string to_string(T) [with T = long int; typename std::enable_if<(((((std::is_arithmetic<_Tp>::value && (! std::is_same<T, bool>::value)) && (! std::is_same<T, wchar_t>::value)) && (! std::is_same<T, char>::value)) && (! std::is_same<T, char16_t>::value)) && (! std::is_same<T, char32_t>::value))>::type* <anonymous> = 0u; std::string = std::basic_string<char>]’: src/advanced_inv.cpp:1635:58: required from here src/compatibility.h:64:1: warning: no return statement in function returning non-void [-Wreturn-type] Makefile:436: recipe for target 'objwin/advanced_inv.o' failed make: *** [objwin/advanced_inv.o] Error 1

What compiler version are you using?
We’ve seen this in the past with Mingw, it doesn’t support c++11 consistently.

Think I’m using 4.9.2 of MingW…

At least that’s what I gather fro the filename, I basically followed http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile to the letter.

This is the folder name that I added in fstab, as per the directions linked above (presumably this contains the version information?):

C:\Program Files\mingw-w64\x86_64-4.9.2-win32-seh-rt_v4-rev2\mingw64

Make sure your mingw/bin path isn’t in PATH.

Ahh, that was is it karlnp. I had to add it to PATH via Windows, apparently mingw was not updating PATH.

If something else breaks, try taking it out again. and sourcing /etc/profile from mingw64, since the MSYS console is the PATHless one & sets up the PATH for the other 2 consoles by modifying /etc/profile.