chyh1990 / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

/MT and /MD option necessary #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Not sure this is the good place for that issue because it sounds like a
personal one :

I use a external lib and I must set the /MD option to use it, but google
test expect /MT ... so I cannot use it in my application ... 

Is there any way to use it in /MD mode ?

I use Visual 2008 and native c++ code

Thanks.

vincent.bourdier@gmail.com

Original issue reported on code.google.com by vincent....@gmail.com on 17 Jul 2009 at 11:34

GoogleCodeExporter commented 9 years ago
Have you tried to build gtest with /MD(d) set instead of /MT(d)?

Original comment by vladlosev on 30 Jul 2009 at 5:15

GoogleCodeExporter commented 9 years ago
Yes I did, but they were a lot of warning about the debug info not available or
something like that (I do not remember exactly).

Is gtest compatible with /MD (/MDd) ? 
Maybe I was a bit too quick for my compilation parameters.

Thanks for your reply.

Original comment by vincent....@gmail.com on 30 Jul 2009 at 5:22

GoogleCodeExporter commented 9 years ago
gtest should work with /MD.  Assigning this to Vlad, who will work on providing
project files for both /MD and /MT.

Original comment by zhanyong...@gmail.com on 7 Aug 2009 at 4:06

GoogleCodeExporter commented 9 years ago
GTest works with Multi-threaded DLL. Just make sure you only compile the GTest 
library 
(and set it to MT DLL) and not all the unit tests (unless you change them to 
Multi-
threaded DLL too)

Original comment by g.h.vand...@gmail.com on 3 Sep 2009 at 4:39

GoogleCodeExporter commented 9 years ago
/MD projects added i revision 298.

Original comment by vladlosev on 6 Sep 2009 at 5:21