在Reddit上看到一个提问是“Why are MSVC compiler error still atrocious?”,提问者在问题描述里放了一段MSVC的十分冗长但大部分无关紧要的C++报错,又用Clang编译相同的代码,放了Clang较为清晰简明的报错输出作为对比,质问为什么 MSVC 编译器的错误提示仍然很糟糕?
看了下回答,有被高赞回答里不同用户的MSVC lesson接力评论给笑到:D
- zeph384: MSVC lesson one: Only pay attention to the first line of error in the output tab. It may not give you perfect information, but that's where your biggest problem is. Use the context from that as the foundation for solving everything else.
- ShelZuuz: Lesson two (if lesson one doesn't work). Search for the first .cpp file down the error printout.
- Kered13: Lesson three: Copy-paste your code into Godbolt (if possible) so you can see what the Clang error message is.
- Baardi: Or just use change the compiler used in Visual Studio to clang
不过也有些回答不太认同提问者,说C++报错就这样,几个编译器都半斤八两。
- blackwizarrd: C++ errors are generally like those, I don't think MSVC is special here.
- IHaveRedditAlready_: Well, I can assure you, both compilers (GCC, Clang, MSVC) can generate loads and loads of verbose text. Not just MSVC.”。
根据我今天碰到的情况,MSVC和Clang都输出了冗长而无关紧要的报错,几乎不能帮助定位错误,“C++ errors are generally like those”的描述确实很贴切...
link: www.reddit.com/r/cpp/comments/11iwihu/why_are_msvc_compiler_error_still_atrocious/
看了下回答,有被高赞回答里不同用户的MSVC lesson接力评论给笑到:D
- zeph384: MSVC lesson one: Only pay attention to the first line of error in the output tab. It may not give you perfect information, but that's where your biggest problem is. Use the context from that as the foundation for solving everything else.
- ShelZuuz: Lesson two (if lesson one doesn't work). Search for the first .cpp file down the error printout.
- Kered13: Lesson three: Copy-paste your code into Godbolt (if possible) so you can see what the Clang error message is.
- Baardi: Or just use change the compiler used in Visual Studio to clang
不过也有些回答不太认同提问者,说C++报错就这样,几个编译器都半斤八两。
- blackwizarrd: C++ errors are generally like those, I don't think MSVC is special here.
- IHaveRedditAlready_: Well, I can assure you, both compilers (GCC, Clang, MSVC) can generate loads and loads of verbose text. Not just MSVC.”。
根据我今天碰到的情况,MSVC和Clang都输出了冗长而无关紧要的报错,几乎不能帮助定位错误,“C++ errors are generally like those”的描述确实很贴切...
link: www.reddit.com/r/cpp/comments/11iwihu/why_are_msvc_compiler_error_still_atrocious/
南洋理工大学国立教育学院(National Institute of Education,简称NIE)目前已开放2024年1月入学申请系统,截止日期为2023年7月4日。
可申请一月入学的专业如下:
Master of Arts (Applied Linguistics)
Master of Arts (Applied Psychology)
Master of Arts (Educational Management)
Master of Arts (Instructional Design and Technology)
Master of Arts (Humanities Education)
Master of Arts (Teaching Chinese as an International Language)
Master of Education
Master of Science (Exercise and Sport Studies)
Master of Science (Life Sciences)
Master of Science (Mathematics for Educators)
除了Master of Arts (Teaching Chinese as an International Language)可用六级成绩申请之外,其他专业均要求托福或雅思成绩。
#香港留学##英国留学##新加坡留学##宝国叔话留学##出国留学[超话]#
可申请一月入学的专业如下:
Master of Arts (Applied Linguistics)
Master of Arts (Applied Psychology)
Master of Arts (Educational Management)
Master of Arts (Instructional Design and Technology)
Master of Arts (Humanities Education)
Master of Arts (Teaching Chinese as an International Language)
Master of Education
Master of Science (Exercise and Sport Studies)
Master of Science (Life Sciences)
Master of Science (Mathematics for Educators)
除了Master of Arts (Teaching Chinese as an International Language)可用六级成绩申请之外,其他专业均要求托福或雅思成绩。
#香港留学##英国留学##新加坡留学##宝国叔话留学##出国留学[超话]#
感觉现在的本科生就跟十年前的大专生一样,贬值得太厉害了,对这内卷感到疲惫……
身边两个好朋友都选择了留学,而我steady as fk做着朝八晚六的工作没有改变现状的勇气,得到和付出到底成不成正比也是个大大的疑问。
早上茶水间碰到一个同事说我每天打照面都是面无表情的,我想了想只能回一句,“可能是早上太困做不出表情吧……”然后勉强扯了扯嘴角。
既想朝九晚五,又想年入几十个,纯纯是在做梦了嗷[顶]
身边两个好朋友都选择了留学,而我steady as fk做着朝八晚六的工作没有改变现状的勇气,得到和付出到底成不成正比也是个大大的疑问。
早上茶水间碰到一个同事说我每天打照面都是面无表情的,我想了想只能回一句,“可能是早上太困做不出表情吧……”然后勉强扯了扯嘴角。
既想朝九晚五,又想年入几十个,纯纯是在做梦了嗷[顶]
✋热门推荐