ddavis2speedray / googletest

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

gtest_dll.dll and gtest_dll_unittest_.exe need to be compiled with /MD flag #268

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
gtest_dll_unittest_.exe currently fails due to gtest_dll_unittest_.exe and 
gtest_dll.dll using private instances of various common libraries.  When I 
manually changed the msvc project files generated by CMake to use the /MD 
flag instead of the /MT flag (and rename gtest_dll_unittest_.exe to 
gtest_dll_unittest.exe), all tests in gtest_dll_unittest.exe pass.

Original issue reported on code.google.com by BitO...@gmail.com on 26 Mar 2010 at 9:10

GoogleCodeExporter commented 9 years ago
This is a link test, not meant to be run (hence the trailing _ in the file 
name). 
Vlad is working on making it executable.

Original comment by w...@google.com on 26 Mar 2010 at 9:14

GoogleCodeExporter commented 9 years ago
Should I create another issue where gtest_dll_unittest should actually be an 
executable 
test and not just a link test?  gtest_dll_unittest needs to be run to confirm 
that 
gtest_dll is working correctly and catch errors that are unique to it being a 
DLL like 
it needing to use the /MD flag and cannot use the /MT flag.

Original comment by BitO...@gmail.com on 26 Mar 2010 at 9:54

GoogleCodeExporter commented 9 years ago
No need for a new issue.  Vlad is already working on it and we can track the 
progress
here.  Thanks.

Original comment by w...@google.com on 26 Mar 2010 at 9:59

GoogleCodeExporter commented 9 years ago
We now have CMake build script that, when invoked with -DBUILD_SHARED_LIBS=ON,  
produces projects which generate DLLs with correct settings. The command to 
test is

cmake <path_to_gtest> -DBUILD_SHARED_LIBS=ON -Dgtest_build_tests=ON

Closing the issue.

Original comment by vladlosev on 13 May 2010 at 9:00