Is it possible to mix static, multi-threaded DLLs in one project?

Can I use different libraries A, B, C in the same project in Visual Studio, where A is a static library, B is a multithreaded, and C is a multithreaded DLL? Or should they all be of the same type for a single .exe output?

Edit: Sorry, A is a single-threaded static library. B is a multi-threaded static library, C is a multi-threaded DLL. (I think A and B are the same in terms of linker?)

+3
source share
3 answers

Are you talking about a library compiler with a different type of CRT link (static, dll)? If so, then this is not possible.

0
source

, B, - .

A exe B , C , .

+2

, , .

→ → → A B, .

→ C/++ → → → , , , DLL- Debug.

So you can do:
A - Configuration Type: Static Library. Runtime Lib: multithreaded Debug DLL. (yes, this is normal)
B - Type of configuration: dynamic library. Runtime Lib: multi-threaded DLL for debugging.

These two libraries can be linked with the same exe.

+2
source

Source: https://habr.com/ru/post/1733289/


All Articles