OpenSiv3D
OpenSiv3D copied to clipboard
Visual Studio 2022 17.8 + Siv3D v0.6.12でのコンパイルエラーを消す手順 / Steps to Eliminate Compilation Errors in Visual Studio 2022 17.8 + Siv3D v0.6.12
Visual Studio 2022 17.8 + Siv3D v0.6.12でのコンパイルエラーを消す手順
最新の Visual Studio 2022 17.8 で Siv3D v0.6.12 プロジェクトを「Debug ビルド」すると、非標準の関数を使っているという警告由来のエラーが生じます。マクロ定義を追加することで警告を抑制し、正常にビルドできます。
原因
サードパーティライブラリ fmt の、Siv3D が同梱しているバージョンで非標準の関数が使われています。Visual Studio 2022 17.8 からは、特定のマクロを指定しない状態でそうした関数を使用したときに警告が出されるようになりました。
手順
- プロジェクトのプロパティを開き、プロパティウィンドウ上の「構成(C):」を「Debug」にする
- 「構成プロパティ」>「C/C++」>「プリプロセッサ」>「プリプロセッサの定義」のリストを開く
- 末尾に
_SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS
を加え、「OK」>「適用」を押す
修正版のリリース
対策済みの v0.6.13 をリリースしました。
Steps to Eliminate Compilation Errors in Visual Studio 2022 17.8 + Siv3D v0.6.12
When building a Siv3D v0.6.12 project in Debug mode with the Visual Studio 2022 17.8 released today, you will encounter errors originating from warnings about the use of non-standard functions. You can suppress these warnings and build successfully by adding a macro definition.
Steps
- Open the project properties and set the 'Configuration(C):' to 'Debug' in the property window.
- Navigate to 'Configuration Properties' > 'C/C++' > 'Preprocessor' > 'Preprocessor Definitions' and open the list.
- Add
_SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS
to the end, and click 'OK' > 'Apply'.
We have released an updated version, v0.6.13, with this issue addressed.