Ouh hi. Nice. Thanks for the response.
Let's dig into it.
A couple more details if that is a very uncommon error.
I open: openttd_vs142.sln
Then I go: Build -> Build Solution (not build openttd? right? Either way, the result is identical)
And I spare you the whole output as it literally(!) is:
Severity Code Description Project File Line Suppression State
Error C2338 Windows headers require the default packing option. Changing this can lead to memory corruption. This diagnostic can be disabled by building with WINDOWS_IGNORE_PACKING_MISMATCH defined. (compiling source file ..\src\date.cpp) openttd G:\Windows Kits\10\Include\10.0.18362.0\um\winnt.h 2482
80 times over and over again. Files: date.cpp, console.cpp, console_cmds.cpp, ...
The only more or less kinda related stuff I found to this topic was:
https://stackoverflow.com/questions/293 ... ck-warning
https://stackoverflow.com/questions/565 ... ing-option
Regarding the second link, when I head to Project -> Properties -> C/C++ -> Command Line in "Additional Options" is: "/J /Zc:throwingNew /std:c++latest ".
However, removing '/Zc:throwingNew' didn't change any of the observed behavior. As I never use an IDE I am really digging in the dark and was hoping that someone has a direct solution to it.
Anyways. Thanks a lot for the help!
p.s. Clicking the error message leads to:
winnt.h
Code: Select all
2482 static_assert(__alignof(LARGE_INTEGER) == 8, "Windows headers require the default packing option. Changing this can lead to memory corruption."
2483 " This diagnostic can be disabled by building with WINDOWS_IGNORE_PACKING_MISMATCH defined.");
p.p.s The only thing bothering me is: In the tutorial there is stated:
Set the build mode to Release in Build > Configuration manager > Active solution configuration. You can now compile.
There was no "Release" mode in the menu? So I manually added it? But that doesn't feel right?