DirectX11 Frank Luna - 错误 LNK1104 无法打开文件 'Effects11d.lib' ParticleSystem
DirectX11 Frank Luna - Error LNK1104 cannot open file 'Effects11d.lib' ParticleSystem
正在尝试让 Frank Lunas http://www.d3dcoder.net/d3d11.htm 示例代码正常工作。
运行 第 20 章项目,我得到:
Error LNK1104 cannot open file 'Effects11d.lib' ParticleSystem
感谢任何帮助!
您可能缺少他的 Common
文件夹的 LIBRARY 搜索路径。这应该在链接器的 附加库目录 属性 页面下的项目属性中指定。
请注意,这还假定您只构建代码的 32 位 (x86) 版本,因为他没有提供 Effects11?.lib
.
的 64 位版本
Direct3D 11 的效果 旨在由开发人员构建而不是作为 'system library'。您可以而且应该自己从源代码构建它。请参阅 GitHub. Alternatively, you can use the NuGet 为 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.
更新:此NuGet支持VS 2017 15.9、VS 2019和VS 2022。
正在尝试让 Frank Lunas http://www.d3dcoder.net/d3d11.htm 示例代码正常工作。
运行 第 20 章项目,我得到:
Error LNK1104 cannot open file 'Effects11d.lib' ParticleSystem
感谢任何帮助!
您可能缺少他的 Common
文件夹的 LIBRARY 搜索路径。这应该在链接器的 附加库目录 属性 页面下的项目属性中指定。
请注意,这还假定您只构建代码的 32 位 (x86) 版本,因为他没有提供 Effects11?.lib
.
Direct3D 11 的效果 旨在由开发人员构建而不是作为 'system library'。您可以而且应该自己从源代码构建它。请参阅 GitHub. Alternatively, you can use the NuGet 为 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.
更新:此NuGet支持VS 2017 15.9、VS 2019和VS 2022。