English 中文(简体)
• 如何将有预谋的负责人纳入贵项目
原标题:How to implement precompiled headers into your project
  • 时间:2009-10-11 23:15:07
  •  标签:

我理解预谋者的目的和理由。 然而,执行这些规则时有什么规则? 从我的理解来看,情况就是如此:

  1. Set your project up to use precompiled headers with the YU directive.
  2. Create your stdafx.h file and set that to be your precompiled header.
  3. Include this as the top include statement in each of your .h files.

这是正确的吗? 您是否应当排除将它列入列入您事先编造的主人档案? 目前,在我进行这方面研究时,我有以下汇编错误:

error C2857: #include statement specified with the /Ycstdafx.h command-line option was not found in the source file

指挥线的选择是:

/Od /I "../External/PlatformSDK/Include" /I ".." /I "../External/atlmfc/Include" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yc"stdafx.h" /Fp"....OutputLudoCoreDebugLudoCore.pch" /Fo"....OutputLudoCoreDebug" /Fd"....OutputLudoCoreDebugvc80.pdb" /W4 /WX /nologo /c /ZI /TP /wd4201 /errorReport:prompt

最佳回答

您的笔记应当包括笔记,并使用<代码>/Yc”stdafx.h>。

页: 1

请注意汇编者备选办法中使用的双重引用性质!

这里放映了视力演播室的图像,用于制造一个有预谋的头盔:

“create

这里是相应的指挥线选择(仅读,但反映其他网页上指明的环境;注意到,民主选举学会在汇编者选择中在档案名称上插入双重引用的特性):

“options”/

这正是我的耳聋.案:

// stdafx.cpp : source file that includes just the standard includes
// CallWinsock.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
问题回答

视觉演播室可以不仅通过项目,而且根据来源档案储存预先设计的主人财产。

不管怎样,所有财产都必须“从母公司或项目违约中继承”,这只是表明母公司对该财产的反对价值,但一旦在子女一级(在这种情况下,申请档案)推翻了母财产的变化。

你们想要的组合是:

  1. At project level with "All Configurations" selected (project properties, change configuration drop down from debug/release), Set your pre-compiled header to "Use"
  2. Pick a .cpp file to be the source of the header (as far as I know doesn t matter which one)
  3. Right click and goto properties, and select "Create" for precompiled header
  4. Finally make sure that no other .cpp files have values set for the precompiled header property (you can tell by the bold text)

http://www.un.org。 斜线在档案中使用。 除此以外,你还谈到了权利。

“聋.”只是一项公约。 这绝不是强制性的。 在一个多项目解决方案中,我利用了其他装置,有多个编前的负责人,用于不同部分。 例如,由贵组织项目共享一个PCH,另一个项目供贵组织数据库项目使用,可能是有益的。

相关组成部分是X.h文档,其中列出有缺陷的头盔,X.cpp文档,其中仅包括X.h(并且没有添加代码),X.pch文档则由X.cpp(和X.h)汇编成册(/Yc)。

当你重新编辑Y.cpp文档时,汇编者将/Yu"X.pch>。 页: 1 此时此刻,除投入流外,它用X.pch储存的国家取代了其内部状态(余下的Y.cpp,在<代码>#include “X.h”后将档案点定在下一个行)。





相关问题
热门标签