visual studio2019 community version 设置 Open MP Support问题

properties->Configuration Properties->C/C++ -> Language  将Open MP Support设置为Yes,但此时编译会报MSB600,”CL.exe“ exited with code 2.的错,Starting Debugging后Output列表中错误显示第一条信息为”clxx:error C2338:two-phase name lookup is not supported for C++/CLI, C++/CX, or OpenMP; usr /Zc: twoPhase-“,根据这一错误,去百度搜索,多个博客都提出了相同的解决措施,即将properties->Configuration Properties->C/C++->Language中 Conformance mode(符合模式)改为No,尝试后,果然不再报错,但其中原因还未知。

猜你喜欢

转载自www.cnblogs.com/xinge456/p/11747595.html