Search code examples
c++visual-c++visual-studio-2015compiler-errorsstatic-linking

What options, if any, imply /CLR in Visual Studio 2015


I'm trying to build my 64 bit project in 32 bit mode. All the dependencies are compiled as static libs /MT, and the project/dependencies do not have common language runtime support selected in the project configuration.

Yet I still get this(for the 32 bit build):

    1>cl : Command line error D8016: '/clr' and '/MT' command-line options are incompatible

Aside from being 32 bit/linked to 32 bit versions of my dependencies, the configuration is essentially identical to my 64 bit project.

So I was wondering if there was something in Win32 that could imply /CLR that i might have turned on somewhere in my configuration or if there was a way to see what was using the /CLR option.


Solution

  • Found it, seems one of the individual CPP files had CLR enabled in its properties.