Handmade Hero»Forums»Code
26 posts
VS 2015 Community compiling differences
Hi,

when compiling with latest VS2015 (i installed it since i installed a new W7 because my old installation was running really slow) i get some errors with the latest source.

This shows when i straight build with the latest hhsource day156:


This when enable the /Wv:18 option:


First of i can't figure out the "w:\handmade\code\handmade_intrinsics.h(64): error".

Also the warning D9025 warning, since this is what gets handled with the build.bat, where there is no indication why cl.exe would assume /O2:


Any ideas? Maybe i just turn /Wx off, but yeah, maybe someone knows.
John Lorre
26 posts
VS 2015 Community compiling differences
I do not have VS3015 installed (yet). But I suggest you replace fabs with fabsf in line 64 of handmade_intrinsics.h
26 posts
VS 2015 Community compiling differences
JohnL
I do not have VS3015 installed (yet). But I suggest you replace fabs with fabsf in line 64 of handmade_intrinsics.h


this leads me to this (with /Wv:18):



Thanks!
Mārtiņš Možeiko
2562 posts / 2 projects
VS 2015 Community compiling differences
This warning is normal. It happens because there is /O2 in build.bat.
Look here:
1
cl %CommonCompilerFlags% -O2 -I..\iaca-win64\ -c ..\handmade\code\handmade_optimized.cpp -Fohandmade_optimized.obj -LD
26 posts
VS 2015 Community compiling differences
:ohmy: thanks i didn't see that!