Solving “error d8016 ‘/clr’ and ‘/mtd’ command-line options are incompatible”
When compiling one of my C++ projects, the compiler displayed the error “error d8016 ‘/clr’ and ‘/mtd’ command-line options are incompatible”. I had checked all both the options for “CLR” (Common Language RunTime Support) in “Configuration Properties”->”C/C++”->”
After some time, I saw that only one of the files had a different setting. So in case of these errors, and you can’t solve them via the global project properties, check also the properties of the individual files. They might have a different setting!
My problem was solved by going in the project properties to “Configuration Properties”->”C/C++”->”
Great It really help me a lot. thank u .