OpenSiv3D icon indicating copy to clipboard operation
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

Open Reputeless opened this issue 8 months ago • 0 comments

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 からは、特定のマクロを指定しない状態でそうした関数を使用したときに警告が出されるようになりました。

手順

  1. プロジェクトのプロパティを開き、プロパティウィンドウ上の「構成(C):」を「Debug」にする
  2. 「構成プロパティ」>「C/C++」>「プリプロセッサ」>「プリプロセッサの定義」のリストを開く
  3. 末尾に _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

  1. Open the project properties and set the 'Configuration(C):' to 'Debug' in the property window.
  2. Navigate to 'Configuration Properties' > 'C/C++' > 'Preprocessor' > 'Preprocessor Definitions' and open the list.
  3. 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.

image

Reputeless avatar Nov 15 '23 05:11 Reputeless