-1

I read the answer here: mixing code compiled with /MT and /MD

I have a similar situation. I've a DLL compiled with /MD and another DLL compiled with /MT. I want to link those to the same exe, compiled with /MD. All of those are compiled with same version of compiler.

The last answer from above link says the it is safe to pass a variable (struct/class object) by const ref across the DLL when one DLL is compiled with /MD and other is compiled with /MT. But I read here that it's not safe: https://siomsystems.com/mixing-visual-studio-versions/

Can someone clarify which one is it? Do I have to to design the interface of the DLL such that it exposes only primitive data types and no class objects/structures.

sepp2k
  • 353,842
  • 52
  • 662
  • 667
Suraj
  • 152
  • 1
  • 13

0 Answers0