简体   繁体   English

DirectX11 Frank Luna-错误LNK1104无法打开文件'Effects11d.lib'ParticleSystem

[英]DirectX11 Frank Luna - Error LNK1104 cannot open file 'Effects11d.lib' ParticleSystem

Trying to get Frank Lunas http://www.d3dcoder.net/d3d11.htm sample code working. 试图让Frank Lunas http://www.d3dcoder.net/d3d11.htm示例代码正常工作。

Running the Chapter 20 Project and I'm getting: 运行第20章项目,我得到:

Error   LNK1104 cannot open file 'Effects11d.lib' ParticleSystem    

Any help is appreciated! 任何帮助表示赞赏!

You are likely missing the LIBRARY search path for his Common folder. 您可能缺少其Common文件夹的LIBRARY搜索路径。 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 . 请注意,这还假设您仅在构建32位(x86)版本的代码,因为他没有提供Effects11?.lib的64位版本。

Effects for Direct3D 11 is intended to be built by the developer rather than treated as a 'system library'. Direct3D 11的效果旨在由开发人员构建,而不是视为“系统库”。 You can and should build it from source yourself. 您可以并且应该自己从源代码构建它。 See GitHub . GitHub Alternatively, you can use the NuGet package built for VS 2015. 另外,您可以使用为VS 2015构建的NuGet包。

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 . 还应注意,自从在宣布DirectX SDK本身报废之前出版以来,弗兰克的书有些过时了。 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. 还值得一提的是,Effects本身是“按原样”的,并且不赞成HLSL编译器对fx_5_0配置文件的支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM