-
Hello. I just tried to build fresh version of Bochs with Visual Studio 2015 and found several problems:
First two problems can be fixed relatively easily I guess. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
I believe in year 2024 we should be fine to request C++11 minimum. |
Beta Was this translation helpful? Give feedback.
-
#include "softfloat3e/include/softfloat.h" in fpu.cc and similar files can't be found because it is located in different directory: #include "../softfloat3e/include/softfloat.h" works fine; I don't want to write "../softfloat3e/include/softfloat.h", it looks ugly |
Beta Was this translation helpful? Give feedback.
-
Updated project files now - can you check it is okay now ? |
Beta Was this translation helpful? Give feedback.
-
According to the output of the configure script the minimum standard is C++11. That's why I could add static_assert for structure size checking at compile time. Unfortunately the callback setup from libslirp requires the C++14 standard. Both gcc version 10 and newer and VS2019 support it. Now I had a look for a portable C++ standard version check. This is what I found (I don't know how at insert a piece of code correctly). // C++ standard test code int main(int argc, char **argv) I could add something like that in the slirp code to implement backward compatibility. |
Beta Was this translation helpful? Give feedback.
I have now applied a change that sets the standard for the new style code to C++17. With this setting VS2019 compiles without problems. This VS version seems to support parts a of the newer standard, but reports only the official one it supports completely.