just4phil
Hey folks,
i can build the code until day 369 but i get errors building day 370 and greater.
W:\handmade\data> W:\handmade\code\build.bat
The command "ctime" is either misspelled or could not be found.
Simple_compressor.cpp
Handmade.cpp
W:\handmade\code\handmade_render_group.cpp (211): error C2220: Warning interpreted as an error, no object file was generated.
W:\handmade\code\handmade_render_group.cpp (211): warning C4457: Declaration of "Color" shows function parameters
W:\handmade\code\handmade_render_group.cpp (211): note: To simplify your migration, temporarily use the / wv: 18 temporary tag with the compiler version that you used to run the build without warnings .
W:\handmade\code\handmade_render_group.cpp (173): note: See the declaration of "Color"
Win32_handmade.cpp
The command "ctime" is either misspelled or could not be found.
can anyone help?
bye
phil
I'll try my best without having access to the source archives (aka I'm just watching the videos).
For the ctime one:
-since it's not looking like a compiler error see if it's included in the source archive and check the path when calling it
-if it's a compiler error: check if "time.h" is included correctly
The second one (i'm not sure google translate if 100% correct here) should be defined as:
Variable Shadowing Warning On W4 C4457 "declaration of '%$I' hides function parameter".
Now there are 2 ways to go about this:
- either ignore the warning: add "-wd4457" to the compiler flags
- or fix it: you can read
Here what that warning means.