-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio 2022 compilation errors #10488
Comments
There's also a linker errors ...
Edit: These are caused by me not enabling ASAN completely (actually multi-selected projects not applying settings) - see: https://learn.microsoft.com/en-us/cpp/sanitizers/error-container-overflow |
Also worked around a couple of MSVC warnings reported in #10488.
We don’t actually support building with VS2022 – there are too many compiler regressions. Note that only VS2019 is mentioned here: https://docs.mamedev.org/initialsetup/compilingmame.html#building-with-microsoft-visual-studio
Three of the things are addressed in ae24a68. The others are issues with MSVC itself. As usual, the response is that we don’t pander to broken toolchains. |
The integer overloads of |
Thanks a lot for the analysis and the fixes. I added an additional error after my initial post which you have missed though. It's the last one about the missing Some of the warnings might also pop up with Clang (they look quite familiar) but are warnings which are disabled by default.
That's all the info Visual Studio gives - which also is a bug IMO. I took a look and it seemed like some device was giving a
I didn't run into these the last time I compiled it but that's been a while now. Also it included some errors which cannot be "configured away" so I thought the build had regressed in recent versions and just provided all of them - even if known. I didn't think to look for a "known issue" section since there's no reference in the build guide. Me not thinking that was the paragraph after the VS build is about shortcomings of MSYS2 but there is none about VS. That comes later on in the "Known issues" section. I think there should maybe a reference to the section from the build sections and this additional MSYS2 paragraph should be moved there and moved closer to the previous one. That might make it a bit clearer. There's a linker error after all:
But that is already implicitly covered in #9968 (comment) and the documentation.
See also microsoft/STL#519. |
Nevermind - that's #10482. |
For posterity, I've reported the first issue mentioned above here. |
I ran
make vs2019
, opened it with Visual Studio 2022, performed the conversion and did aRelease|x64
build. I am using themame0249
tag and Windows 10.See #5741 and #4771.
dvk_kcgd.cpp
There's a lot of these - those are just stupid as they cannot even be fixed by adding a return...
xaudio2_sound.cpp
See #9968.
The text was updated successfully, but these errors were encountered: