user2164587
user2164587

Reputation: 59

Visual Studio C++ solution with mixed MT and MD libraries

I have a Visual Studio C++ that includes a couple of projects and libs.

One is compiled with the MD option, the other one is compiled with the MT option.

Is there any way to make this kind of setup working?

Upvotes: 0

Views: 527

Answers (1)

mksteve
mksteve

Reputation: 13085

A single binary (dll/ exe) should not be compiled with /MD and /MT

The libraries have different code to cope with threads starting and stopping, and even if you get the compile working, it won't necessarily work

Use Dlls to separate the different styles, or make them all consistent

Upvotes: 1

Related Questions