避免预编译头文件(stdafx.h)的问题

时间:2019-12-05 09:40:25

标签: visual-studio qt precompiled-headers

我在一个Visual Studio解决方案中有2个项目;

MyApp.sln
   |
   |__MFCProject.vcxproj
   |     |
   |     |_foo.cpp
   |
   |_QtProject.vcxproj
         |
         |_foo.cpp

这里foo.cpp在两个项目之间共享,该项目在第一行包含Stdafx.h预编译头。 考虑到我无法更改MFC Project,也不能更改foo.cpp,是否有任何解决方案可以避免在运行Qt Project时编译“ #include“ stdafx.h”?

0 个答案:

没有答案