Categories > Coding > C++ >
Cannot open source file "d3dx9.h" - No such file or directory
Posted
Hey,
I've got a new error. I added in my C++ project the d3dx9.h thingy and it says a error. It should be working fine as a standard library, shouldn't it? Anyways, how can I fix that? I'm using Visual Studio 2019.
Added
@boyke it removed the "no such directory", but it still says cannot open source file
Cancel
Post
Random quote here...
Replied
You need the DirectX 9 SDK, download and install it and then include and link it in your project, and don't use the directory in the program files directory or whatever, you should use the system environment variable DXSDK_DIR
<AdditionalIncludeDirectories>$(DXSDK_DIR)Include;%(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
<!-- for x64 replace x86 with x64 -->
<AdditionalLibraryDirectories>$(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>d3d9.lib;%(AdditionalDependencies)</AdditionalDependencies>
Cancel
Post
Replied
@boyke Why would u do that bruh...
Install the DirectX SDK and put the path in ur include directory and library directory lol.
Cancel
Post
Replied
Yeah im getting this too, help.
Cancel
Post
https://media.discordapp.net/attachments/994643402949926956/1004560140252495960/uqJXQIda.gif
Discord: Ad#1085; Don't hesitate to DM me if you need help/anything.
Replied
other renderers exist and there are better frameworks than imgui
Cancel
Post
You are a feedback loop.
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post