Re: [Boost-users] Support for VS 2005 C++/CLI
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.
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.
I'm out of ideas. :-) There isn't anything actively CLI-hostile in the thread library as far as I know. You could try stepping into the program with the debugger and see what causes the error, but if it's the .NET loader not liking it for some reason, this might not help. You best bet is probably to report the problem to Microsoft somehow, since it seems like a legitimate regression.
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.
participants (3)
-
Edward Diener
-
John Dunn
-
Peter Dimov