views:

179

answers:

2

Is it possible to use distinct libraries A, B, C in the same project in Visual Studio, where A is a static library, B is multi-threaded and C is a multi-threaded DLL? Or do they all have to be 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 guess A and B are the same from the linker's point of view?)

+1  A: 

Not sure what B is but the general idea is yes.

A will get compiled directly into the exe B Not sure about what this one is C Yes, functions within this library will be linked at runtime.

Suroot
A: 

Are you talking about libraries compiler with different CRT linking type(static, dll)? If yes, then it's impossible.

BarsMonster
Nothing to do with CRT. These are your average libraries
jamesj629
As one library is single and other multi threaded then they are linked with different CRTs even if everything else is the same - so you need to know which CRTs each one has - if C++ then will definitely matter if C then depemds on what functions are used
Mark
Ahh okay. The jigsaw piece has dropped into place a little...Does this only matter for C/C++? For instance I have FORTRAN libraries that are either DLLs or static.
jamesj629