Search code examples
visual-studioc++-cli

Compilation with /MTd fails with: error C3193 '^': requires '/clr' or '/ZW' command line option


Project compiles successfuly using Multi-threaded (/MT) option. However when switched to Multi-threaded Debug (/MTd) build fails getting: Error C3193 '^': requires '/clr' or '/ZW' command line option

If there is no possibility of using /clr because of /MTd how to add /ZW option?

SOLUTIONS TRIED

  • In General tab enable No Common Language Runtime Support option. Build still fails with the same error message.

Solution

  • Project built successfuly with Multi-threaded Debug (/MTd) option by disabling Conformance Mode.