xxx.pch(No such file or directory)
fangyukuan
2010.6.6
今天在写一个组件的Demo,发现把一个现象。
我把stdafx.h和stdafx.cpp从工程删除了(本地也被我删除了)。后来又想把它加回去,就用新的工程生成这两个文件。然后拷贝过来,增加到工程。
但是编译的时候出现如下信息:
Cannot open precompiled header file: 'Debug/xxx.pch': No such file or directory
打开工程文件的时候,发现stdafx.cpp跟之前已经不一样了。
在Filter 名字为Name="Source Files" 里关于stdafx.cpp已经变成如下:
<File
RelativePath=".\stdafx.cpp"
>
正确应该是:
<File
RelativePath=".\stdafx.cpp"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
</File>
把它改回之前的,编译果然可以正常通过了。
像这类情况的还有def文件,同样得在自己的工程里新建才行。
本文件地址:http://www.cnblogs.com/fangyukuan/archive/2010/06/06/1752691.html
转载于:https://www.cnblogs.com/fangyukuan/archive/2010/06/06/1752691.html
xxx.pch(No such file or directory)相关推荐
- Cannot open precompiled header file:'Debug/password.pch' No such file or directory
今天在VC6.0中咕哝个程序,遇到如下提示: Cannot open precompiled header file:'Debug/password.pch' No such file or dire ...
- fatal error C1083: 无法打开预编译头文件:“Debug\opencv.pch”: No such file or directory
fatal error C1083: 无法打开预编译头文件:"Debug\opencv.pch": No such file or directory 步骤/方法: 右键点击你创建 ...
- Cannot open precompiled header file: 'Debug/shuju1.pch': No such file or directory
Q1: Cannot open precompiled header file: 'Debug/shuju1.pch': No such file or directory solution: 是预编 ...
- Cannot open precompiled header file: 'Debug/***.pch': No such file or directory
Cannot open precompiled header file: 'Debug/*.pch': No such file or directory 今天在VC6.0中咕哝个程序,遇到如下提示: ...
- 解决 VS 无法打开包括文件: “XXX.h”: No such file or directory问题
每次封装管理,当 Visual Studio 包含多个 .h 文件和 .c 文件,运行时总会发生如下错误 错误 C1083 无法打开包括文件: "XXX.h": No such f ...
- pycharm使用ssh连接服务器(ubuntu)跑代码报错:“sudo+ssh: ……bash: line 0: cd: xxx/code: No such file or directory”
pycharm使用ssh连接服务器(ubuntu)跑代码报错:"sudo+ssh: --bash: line 0: cd: xxx/code: No such file or directo ...
- Cannot open precompiled header file: 'Debug/****.pch': No such file or directory
环境:VC 执行:编译程序 问题描述:Cannot open precompiled header file: 'Debug/****.pch': No such file or directory ...
- GCC 链接 xxx:No such file or directory 及运行可执行文件 error while loading shared libraries: xxx.so 解决方案
关于 GCC 提示找不到指定库文件的这个问题,通常出现在以下 2 个场景中: 利用静态库或者动态库文件实现链接操作(生成可执行文件)时,·GCC 可能会提示 xxx:No such file or d ...
- [git]fatal: unable to read config file 'xxx/.gitconfig': No such file or directory
2019独角兽企业重金招聘Python工程师标准>>> git config --global --list fatal: unable to read config file ' ...
最新文章
- Springboot 中 Mybatis 的使用
- 66篇论文入选CVPR 2021,商汤的秘籍竟是“大力出奇迹”
- DOCTYPE html PUBLIC 指定了 HTML 文档遵循的文档类型定义
- 深度学习之生成对抗网络(2)GAN原理
- 丰收互联蓝牙key怎么开机_ublox收购Rigado的蓝牙模块业务,扩大蓝牙低功耗产品组合...
- scanf 输入加逗号(或者不加逗号)出现的异常及解决方案
- 利用有名管道实现进程间的通信
- spring-security-学习笔记-01-基本概念
- element UI Cascader 级联选择器 动态加载次级选项
- C#中的Nutshell函数式编程
- 如何开发一款高大上的android应用的必备知识
- fme坐标转换器_利用FME做坐标转换
- wifi配网过程的详细介绍
- COMSOL光学仿真专题案例展示
- 内存的物理结构和工作原理
- 一个具有一些功能的网络画图板
- js自定义提示框弹窗
- lds链接脚本基础与例子分析
- 第4天:python的数据类型、用户交互以及基本运算符
- Spring之IOC的注入方式总结
热门文章
- 机器学习经典书籍论文
- 2020-08-27 GitHub 文件下载加速站点 https://g.ioiox.com
- 2018-06-13 pymssql 访问 SQL Server 2017 或 pyodbc 访问支持 ODBC 的数据库
- 浅谈jQuery Mobile设计思想
- 双android手机同步工具,android手机同步数据PC(SyncDroid)
- 学java web需要学php吗_学JAVA WEB要先学什么
- python怎么把变量付给数组_使用Python将数组的元素导出到变量中(unpacking)
- springboot 整合 Servlet、Filter、Listener、访问静态资源
- Spark 解析 : DAGScheduler中的DAG划分与提交
- 球球大作战c语言源代码,球球大作战,源码分享