xiaowanmay / googletest

Automatically exported from code.google.com/p/googletest
0 stars 0 forks source link

VS2005 stops on "unresolved external symbol"s while building gtest_unittest #304

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Win XP + VS2005,

svn checkout http://googletest.googlecode.com/svn/trunk/ googletest
cd googletest\msvc
devenv gtest.sln /Upgrade  # convert 7.1 solutions and projects to 8.0
devenv gtest.sln /Build "Debug" /Project gtest_unittest

...
3>------ Build started: Project: gtest_unittest, Configuration: Debug Win32 
------
3>Compiling...
3>gtest_unittest.cc
3>Compiling manifest to resources...
3>Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
3>Copyright (C) Microsoft Corporation.  All rights reserved.
3>Linking...
3>gtest_unittest.obj : error LNK2019: unresolved external symbol "void __cdecl 
testing::internal::PrintTo(...)"
3>gtest_unittest.obj : error LNK2019: unresolved external symbol "void __cdecl 
testing::internal::PrintStringTo(...)"
3>gtest_unittest.obj : error LNK2019: unresolved external symbol "void __cdecl 
testing::internal::PrintWideStringTo(...)"
3>gtest_unittest.obj : error LNK2019: unresolved external symbol "void __cdecl 
testing::internal::PrintTo(...)"
3>gtest_unittest.obj : error LNK2019: unresolved external symbol "void __cdecl 
testing::internal2::PrintBytesInObjectTo(...)"
3>gtest_unittest.obj : error LNK2019: unresolved external symbol "void __cdecl 
testing::internal::UniversalPrintArray(...)"
3>gtest/Debug/gtest_unittest.exe : fatal error LNK1120: 6 unresolved externals
3>Build log was saved at 
"file://c:\googletest\msvc\gtest\Debug\gtest_unittest\BuildLog.htm"
3>gtest_unittest - 7 error(s), 0 warning(s)
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I've replaced long lines with "(...)", attached is the full version of this log

Original issue reported on code.google.com by timurrrr@google.com on 13 Aug 2010 at 1:44

Attachments:

GoogleCodeExporter commented 9 years ago
The same happens on Win 2008 server + VS2008 (9.0.30729.1)

Original comment by timurrrr@google.com on 13 Aug 2010 at 1:47

GoogleCodeExporter commented 9 years ago
Just for the record, it's googletest r454

Original comment by timurrrr@google.com on 13 Aug 2010 at 1:48

GoogleCodeExporter commented 9 years ago
Thanks for the report.  gtest is unstaffed right now.  Would you like to 
contribute a fix?

Original comment by w...@google.com on 13 Aug 2010 at 4:34

GoogleCodeExporter commented 9 years ago
Fixed in r481.

Original comment by w...@google.com on 8 Sep 2010 at 6:02