请问如何让不是precompile的工程变成precompile
1。 增加stdafx.h和stdafx.cpp两个文件
2。 让project中所有的工程都#include "stdafx.h"
3. project property中选择Use precompile
-------------尝试 1------------------
rebuild project 得到错误如下:
1>------ Rebuild All started: Project: test6, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'test6', configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>e:\yanwei\work\cpp\testprecompile\test6\source\stdafx.cpp(5) : error C2859: e:\yanwei\work\cpp\testprecompile\test6\test6\debug\vc80.pdb is not the pdb file that was used when this precompiled header was created, recreate the precompiled header.
1>e:\yanwei\work\cpp\testprecompile\test6\source\stdafx.cpp(5) : error C2859: e:\yanwei\work\cpp\testprecompile\test6\test6\debug\vc80.idb is not the idb file that was used when this precompiled header was created, recreate the precompiled header.
1>test6.cpp
1>e:\yanwei\work\cpp\testprecompile\test6\source\test6.cpp(4) : error C2859: e:\yanwei\work\cpp\testprecompile\test6\test6\debug\vc80.pdb is not the pdb file that was used when this precompiled header was created, recreate the precompiled header.
1>e:\yanwei\work\cpp\testprecompile\test6\source\test6.cpp(4) : error C2859: e:\yanwei\work\cpp\testprecompile\test6\test6\debug\vc80.idb is not the idb file that was used when this precompiled header was created, recreate the precompiled header.
1>Generating Code...
1>Build log was saved at "file://e:\yanwei\work\Cpp\testprecompile\test6\test6\Debug\BuildLog.htm"
1>test6 - 4 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
就算我先编译stdafx.cpp也是上面的错误。
-------------尝试 2------------------
把debug目录删除,rebuild
1>------ Rebuild All started: Project: test6, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'test6', configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>e:\yanwei\work\cpp\testprecompile\test6\source\stdafx.cpp(5) : fatal error C1083: Cannot open precompiled header file: 'Debug\test6.pch': No such file or directory
1>test6.cpp
1>e:\yanwei\work\cpp\testprecompile\test6\source\test6.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug\test6.pch': No such file or directory
1>Generating Code...
1>Build log was saved at "file://e:\yanwei\work\Cpp\testprecompile\test6\test6\Debug\BuildLog.htm"
1>test6 - 2 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
我把use precompile改为create precompile,rebuild这会倒是编译通过了,但再次改回use precompile还是和尝试1一样的错误.
多谢.
相关推荐
assets_precompile_enforcer:如果在开发过程中 config.assets.precompile 中缺少资产,则会引发异常
资产预编译执行器 这个 gem 确保开发人员在开发时不会忘记向config.assets.precompile添加资产。 如果您通过javascript_include_tag或stylesheet_link_tag包含资产,并且它与config.assets.precompile中的过滤器不匹配,则会引发异常。 安装 将此行添加到development组中应用程序的 Gemfile 中: group :development do gem 'assets_precompile_enforcer' end 然后执行: $ bundle 或者自己安装: $ gem install assets_precompile_enforcer 用法 您需要将config.assets.precompile += ...设置移动到config/application.rb ,而不是con
在统信UOS上编译Qt5.12.8源码,我踩过的那些坑和高效配置方案
本文详细介绍了在统信UOS上编译Qt5.12.8源码的全过程,包括系统准备、源码预处理、配置参数优化及常见错误解决方案。针对国产操作系统的特殊性,提供了高效的编译配置方案和性能调优技巧,帮助开发者避免常见陷阱,顺利完成Qt开发环境搭建。
模板驱动型文档自动化:让标准化文档生产变成结构化填空
文档自动化是企业内容规模化交付的核心能力,其本质在于将重复性文档生成从自由创作转变为受控复用。基于模板驱动的实现方式,依托结构化内容建模、数据源绑定与条件逻辑渲染三大原理,显著提升输出的准确性、合规性与一致性。相比AI生成易出现幻觉、难追溯、不可控等短板,模板驱动以确定性为技术价值锚点,天然适配法务合同、销售方案、HR制度、财务报告等强规则场景。本文聚焦Sqribble平台实践,详解模板三层架构(视觉层/结构层/逻辑层)、数据对接要点及版本可控输出机制,为高频标准化文档团队提供可落地的自动化升级路径。
precompile-源码.rar
precompile-源码.rar
less-plugin-precompile-import:更少的插件可以在导入之前进行较少的编译。 对主题供应商库非常有用
LESS插件,可在导入源之前对其进行编译 问题示例: : 此插件尚未发布到NPM。 应该直接从这个github仓库安装。 如果有人要支持它或解决问题,请随时在“问题”中向我询问权限或提交PR。



