Trying to get Frank Lunas http://www.d3dcoder.net/d3d11.htm sample code working.
Running the Chapter 20 Project and I'm getting:
Error LNK1104 cannot open file 'Effects11d.lib' ParticleSystem
Any help is appreciated!
You are likely missing the LIBRARY search path for his Common
folder. This should be specified in your project properties under the Linker's Additional Library Directories property page.
Note that this also assumes you are only building 32-bit (x86) versions of the code since he didn't provide a 64-bit version of the Effects11?.lib
.
Effects for Direct3D 11 is intended to be built by the developer rather than treated as a 'system library'. You can and should build it from source yourself. See GitHub. Alternatively, you can use the NuGet package built for VS 2015.
Also be aware that Frank's book is a little outdated since it was published before the DirectX SDK itself was declared end-of-life. See this blog post for some notes. Also it's worth mentioning that Effects itself is "as is", and HLSL compiler support for the
fx_5_0
profile is itself deprecated.
UPDATE: This NuGet supports VS 2017 15.9, VS 2019, and VS 2022.