C++ compile issue

时间:2023-12-24 20:44:13

You can do so via right-click -> Properties on a file or a selection of files in Solution Explorer. In the Property Pages dialog, navigate to C/C++ -> General, and look for "Enable Windows Run Time Extensions".

Set Common Language RunTime Support to be "Common Language RunTime Support (/clr)" in 2 places in your project properties :

Configuration Properties -> General

Configuration Properties -> C/C++ -> General