19 Oct
2006
19 Oct
'06
11 p.m.
John Dunn wrote:
Peter Dimov wrote :
Does it fail with both the static and the dynamic VC runtime?
I don't think you can use the static runtime with CLI. When I try, I get the following error -
cl: Command line error D8016 : '/MTd' and '/clr' command-line options are incompatible
Both the release and debug versions fail in the same manner.
It is possible to create a static run-time library which is compiled with /clr, but that library must be compiled with /MD ( or /MDd ) and not /MT ( or /MTd ). In effect, as you have found out, all /clr code which used the CRT must use the dynamic RTL and never the static RTL.