kookie424 / googletest

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

gtest 1.2.1 introduces link errors with MSVC 2005 #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Convert the Visual Studio 2003 solution files to Visual Studio 2005.
2. Build gtest.
3. Attempt to build tests which built and ran successfully with a previous
version of gtest (I think 1.1.0).

What is the expected output? What do you see instead?

I expected the build to succeed; instead I see numerous link errors due to
multiply-defined symbols.  I have been unable to find any combination of
excluded libraries that solves this problem without leaving unresolved symbols.

What version of the product are you using? On what operating system?

gtest 1.2.1, Windows XP (32-bit), MSVC 2005

Please provide any additional information below.

See attached file for link errors.

Original issue reported on code.google.com by paulshar...@gmail.com on 5 Mar 2009 at 8:22

Attachments:

GoogleCodeExporter commented 9 years ago
Check your compiler configuration. You should use same runtime library in your 
code-
base and gtest codes.
(May be you are using Mutltithreaded Debug DLL(/MDd) in your codes and 
Multithreaded 
Debug(/MTd) in gtest-code.

Original comment by rei...@gmail.com on 6 Mar 2009 at 6:33

GoogleCodeExporter commented 9 years ago
I thought I had the RTLs in agreement, but they weren't...once the descriptions 
get
to a certain length it's easy to glance and think they're the same when they 
aren't.

Anyway, my tests build successfully against gtest 1.2.1 now...thanks. 

Original comment by paulshar...@gmail.com on 6 Mar 2009 at 3:28

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 6 Mar 2009 at 9:22