I am reviewing a legacy code in C++ in Visual Studio 2008. When adding the static lib d3dx9.h it throws the following error at compilation (for a number of files):
Compiling...
Menu.cpp
c:\users\jason\desktop\slot project\video_engine.h(33) : fatal error C1083:
Cannot open include file: 'd3dx9.h': No such file or directory
MAIN.cpp
c:\users\eduardo\desktop\slot project\video_engine.h(33) : fatal error C1083:
Cannot open include file: 'd3dx9.h': No such file or directory
GameSettings.cpp
c:\users\eduardo\desktop\slot project\video_engine.h(33) : fatal error C1083:
Cannot open include file: 'd3dx9.h': No such file or directory
...
...
...
This lib is included in video_engine.h:
#include "d3dx9.h"
#pragma comment(lib, "platform\\DirectX\\d3d9.lib")
#pragma comment(lib, "platform\\DirectX\\d3dx9.lib")
Likewise, the header video_engine.h is included directly (#include...) and indirectly (including a file that already included this header...) by a number of files. For instance, Menu.cpp does not include this header, but it (Menu.cpp) does include MAIN.cpp which includes the header (video_engine.h).
Thanks in advance for any suggestions !
In addition, below the Property Pages for AdditionalIncludeDirectories and Linker's AdditionalDependencies and AdditionalLibraryDirectories:


.libfile with a related name, but that's an altogether different thing.