
Does Managed C++ forces multithreading?
John,
Quote:
> I have an EXE project setup as single threaded and with managed C++
> extension on. This EXE project is linked with a few other libraries
> that is also setup as single threaded but with managed C++ extension
> turned off. When try to create the EXE, I get an error message during
> linking about incompatibility between libc.lib and libcpmt.lib.
> Why is libcpmt being used? All the libraries that I'm linking with is
> set as single threaded, so why is it using libcpmt.lib instead of
> libcp.lib? Does managed C++ forces the project to becomes
> multithreaded even though I set it to single threaded?
Yes, it does. On Managed C++ projects, the .NET runtime might very well
create additional threads (at the very least, you'll get extra threads from
the memory managed/GC), and that adds to the fact that, at least in theory,
managed threads don't need to map necessarily to OS threads.
--
Tomas Restrepo