can not open source file "d3dx9.h

0

I'm having this error while compiling

  

Severity Code Description Project File Line Suppression State   Error (active) E1696 Can not open source file "d3dx9.h"   INDIGO   c: \ Users \ spirit \ Documents \ C ++ \ SOUTHERN \ INDIGO \ INDIGO \ Main \ Main.h 18

Main.h

#pragma once

#pragma warning(disable:4996)

#include <Windows.h>
#include <iostream>
#include <memory>
#include <fstream>
#include <string>
#include <map>
#include <vector>
#include <TlHelp32.h>
#include <WinInet.h>

using namespace std;

#include <d3d9.h>
#include <d3dx9.h>

#pragma comment(lib,"d3d9.lib")
#pragma comment(lib,"d3dx9.lib")
#pragma comment(lib, "wininet.lib")

#include "../config.h"
#include "../CSX/CSX.h"
#include "../SDK/SDK.h"

using namespace SDK;

#include "../Settings/Settings.h"
#include "../Engine/Engine.h"
#include "../Cheat/Client.h"
    
asked by anonymous 09.04.2018 / 22:19

1 answer

0

I assume you're on windows, right? Well, I was getting this error, and the like, when compiling the CUDA Samples files from NVIDIA. I solved installing the DirectX SDK, which can be downloaded from the same Microsoft website. After the installation, I compiled the CUDA Samples files again and the error no longer appeared. I do not know what your code is exactly, but this is what I did, maybe it will help you.

    
07.11.2018 / 20:58