Yuan Yijun (bbbush) wrote,
Yuan Yijun

MS VC++ precompiled headers


First, try if you like to disable precompiled headers (it's in the compiler options in the project settings). See if that helps at first. If it does, then try setting your settings for stdafx.cpp to "Create precompiled Header" (/Yc) with stdafx.h, and then set the rest of the files to "Use Precompiled Header" (/Yu) with stdafx.h. See if that helps.

我一直在工程选项里面调这个设置,没想到单独的 cpp 文件也有自己的设置。早该想到,应该有第一个 cpp 文件用来生成这个 pch 文件,可是既然每个 cpp 文件都必须用到 pch 文件,这简直就是个先有鸡还是先有蛋的问题。现在还是查 Google 解决了。

整个项目接近尾声了,编译速度才终于可以忍受:这就是一个 Build Manager 的失败之处了。至于 AWS 组前几天才号召在 Post Build 中复制文件到目标位置:胡乱作出的决定,甚至连 attrib -r 都不用,当初设计源代码仓库目录的时候就有些问题,把二进制文件与需要原样发布的文件混合在同一个目录下,现在多次尝试分离都做不到方便开发和构建。他真是失败。
Tags: 软件工程

  • 2020

    Last time I wrote a review was in 2018, about 2017. Or maybe I wrote something elsewhere, maybe on Twitter? It was hard to write something freely…

  • #thotcon badge?

    [root@m4700 ~]# esptool write_flash 0x00000 /home/yuan/tracking/thotcon0x9/tc0x9.bin esptool.py v2.3.1 Connecting.... Detecting chip type...…

  • Portfolio weighted averages

    Last week I got an assignment to make a small Java library for some often used portfolio calculations. A portfolio is a collection of holdings, each…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded