Skip to content
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 17.8 + Siv3D v0.6.12でのコンパイルエラーを消す手順 / Steps to Eliminate Compilation Errors in Visual Studio 2022 17.8 + Siv3D v0.6.12 #1136

Open
Reputeless opened this issue Nov 15, 2023 · 0 comments
Labels

Comments

@Reputeless
Copy link
Member

Reputeless commented Nov 15, 2023

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 Reputeless pinned this issue Nov 15, 2023
@Reputeless Reputeless changed the title Visual Studio 2022 17.8 + Siv3D v0.6.12でのコンパイルエラーを消す手順 / Compilation Errors in Visual Studio 2022 17.8 Visual Studio 2022 17.8 + Siv3D v0.6.12でのコンパイルエラーを消す手順 / Steps to Eliminate Compilation Errors in Visual Studio 2022 17.8 Nov 15, 2023
@Reputeless Reputeless changed the title Visual Studio 2022 17.8 + Siv3D v0.6.12でのコンパイルエラーを消す手順 / Steps to Eliminate Compilation Errors in Visual Studio 2022 17.8 Visual Studio 2022 17.8 + Siv3D v0.6.12でのコンパイルエラーを消す手順 / Steps to Eliminate Compilation Errors in Visual Studio 2022 17.8 + Siv3D v0.6.12 Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant