错误(有效) E2998 PCH警告:发生未知错误。 未生成IntelliSense PCH文件。 ReservationDb c:\Users \ Denis \source \repos\ReservationDb \ReservationDb \Reservation.h 1Severity CodeDescription ProjectFile LineSuppression StateError (active) E2998PCH warning: an unknown error occurred. An IntelliSense PCH file was not generated.ReservationDb c:\Users\Denis\source\repos\ReservationDb\ReservationDb\Reservation.h1关于如何解决它们的任何想法?Any ideas on how may I solve them?推荐答案 嗯,首先是所有,你为什么使用/ clr:nostdlib。 plain / clr或/ clr:safe是你想要的。Well, first of all, why are you using /clr:nostdlib. plain /clr or /clr:safe is what you want.你很想要禁用标准库(nostdlib)的使用,如果你认真对待它大多数情况下,你做错了。There are very few cases where you want to disable the usage of a standard library (nostdlib) and if you are seriously in that situation then most of the time, you are doing something wrong.更重要的是,/ clr的选项不列出/ clr:nostdlib,所以你把它放在高级编译器中你自己选择吗?What's more, the options for /clr don't list /clr:nostdlib, so did you put this in the advanced compiler options yourself?所以你要做的就是删除你设置/ clr:nostdlib的地方,然后转到常规项目属性并在那里设置公共语言运行时支持:So the thing that you should do is remove wherever you set /clr:nostdlib, then go to the general project properties and set Common Language Runtime Support there:看看是否有效对你而言。see if this works for you. 这篇关于在c ++项目中添加mscorlib.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-02 14:32