zoukankan      html  css  js  c++  java
  • 第一个DirectX程序include、lib设置问题

    1.fatal error LNK1104: cannot open file "d3d9.lib"

    解决方案:

    (1)项目 -->属性 --> 配置属性 -->  链接器 --> 输入 --> 忽略特定默认库 --> 编辑 --> 添加上“d3dx9.lib”

    (2)项目 --> 属性 --> 配置属性 --> VC++目录 --> 包含目录  --> 添加“C:Program FilesMicrosoft DirectX SDK (March 2009)Include” ;

        项目 --> 属性 --> 配置属性 --> VC++目录 --> 引用目录  --> 添加“C:Program FilesMicrosoft DirectX SDK (March 2009)Libx86” ;

    2.fatal error LNK1104: 无法打开文件“dxguid.lib”

    解决方案:

      项目 -->属性 --> 配置属性 -->  链接器 --> 输入 --> 附加依赖项  --> 添加“C:Program FilesMicrosoft DirectX SDK (March 2009)Libx86dxguid.lib”

    3.Failed to save the updated manifest to the file "Debug601.exe.embed.manife"

    解决方案:

      将“工程名/Debug”文件下面的“xxx.exe.embed.manifest”这个文件删除,重新编译一下即可。

    4.“#include "d3dx9.h"”: 在查找预编译头使用时跳过  

      微软官方解释:

      Visual C++ Concepts: Building a C/C++ ProgramCompiler Warning (level 1) C4627Error Message”: skipped when looking for precompiled header use

    While searching for the location where a precompiled header is used, the compiler encountered an #include directive for the include file. The compiler

    ignores the #include directive, but issues warning C4627 if the precompiled header does not already contain the include file.

      解决方案:

      1、去掉预编译头
        项目->属性->配置属性->c/c++->预编译头->创建使用预编译头->不使用预编译头

      2、将包含文件加到预编译头stdafx.h文件中

      3、在每个.cpp中包含预编译头stdafx.h文件,stdafx.h文件应该列在第一个。

  • 相关阅读:
    资深技术Leader曹乐:如何成为技术大牛
    深入理解golang: interface
    Redis主体流程分析
    为什么我们总爱讨论技术与业务之间的那些是是非非?
    [产品]九卷读书:产品的视角-产品思维框架
    go http server 编程实践及源码分析
    [产品]九卷读书: 产品的视角-产品经理能力模型
    [产品]:腾讯8分钟产品课
    Golang gRPC学习(02): 编写helloworld服务
    括号生成
  • 原文地址:https://www.cnblogs.com/syxxlove/p/3356276.html
Copyright © 2011-2022 走看看