LoginSignup
2
2

More than 5 years have passed since last update.

Visual Studio 2017 C++ MFCビルドエラー'd3dx9.h': No such file or directory

Last updated at Posted at 2018-12-20

・Visual Studio 2017で下記のビルドエラー

fatal error C1083: include ファイルを開けません。'd3dx9.h': No such file or directory

・DirectXをインストール
https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=6812

・エラーが出てる該当プロジェクトをソリューションエクスプローラーから右クリック→プロパティ
・構成プロパティ→VC++ディレクトリ
・インクルードディレクトリ→下矢印クリック→<編集....>選択
・インクルードディクトリウィンドウ表示、上部分のフォルダアイコンをクリック→DirectXをインストールしたincludeフォルダを追加(C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\include)

上記でビルドが通る。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2