通常在项目中我们会使用预编译头来改善编译速度。
发现项目中部分工程如果使用预编译头会报错 fatal error C1027: Inconsistent values for /Ym between creation and use of precompiled header
并且如果用VS自己编译是正常的,仅在使用联合编译的时候有这个问题
在xoreax的官网上看,他们在3.32解决过一次此问题: http://www.xoreax.com/incredibuild-version-history.htm#ch332
Fixed a problem that could cause a "c1xx : fatal error C1027: Inconsistent values for /Ym between creation and use of precompiled header" error message.
可是我们专网是3.40的。
如果去掉预编译头的确可以正常编译,不过就达不到我们的目的了 http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/f7f52d36-7992-4d5a-b6b5-8a7e22014aa2/
之后搜到是/Zm设置的问题,把原来设置的/Zm1000改/Zm500即可,见http://www.ogre3d.org/forums/viewtopic.php?f=2&t=60015
又见 http://blog.youkuaiyun.com/pizi0475/article/details/6439690
发现项目中部分工程如果使用预编译头会报错 fatal error C1027: Inconsistent values for /Ym between creation and use of precompiled header
并且如果用VS自己编译是正常的,仅在使用联合编译的时候有这个问题
在xoreax的官网上看,他们在3.32解决过一次此问题: http://www.xoreax.com/incredibuild-version-history.htm#ch332
Fixed a problem that could cause a "c1xx : fatal error C1027: Inconsistent values for /Ym between creation and use of precompiled header" error message.
可是我们专网是3.40的。
如果去掉预编译头的确可以正常编译,不过就达不到我们的目的了 http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/f7f52d36-7992-4d5a-b6b5-8a7e22014aa2/
之后搜到是/Zm设置的问题,把原来设置的/Zm1000改/Zm500即可,见http://www.ogre3d.org/forums/viewtopic.php?f=2&t=60015
又见 http://blog.youkuaiyun.com/pizi0475/article/details/6439690