Bluewave
Members-
Content Count
1 -
Joined
-
Last visited
Community Reputation
0 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Using Google Test Framework with C++ Builder 10.4.2 Community Edition
Bluewave posted a topic in Software Testing and Quality Assurance
Hi, Did any one get the Google Test Framework working? I installed it with GetIt (Google Test 2021.09. I tried to include the Google Test Libs (gtest.lib, gtest_main.lib) I got this as an result: [ilink32 Error] Error: Unresolved external 'std::locale::~locale()' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external 'std::ios_base::_Init()' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external 'std::ios_base::getloc() const' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external 'std::ctype<char>::widen(char) const' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external 'std::ios_base::rdstate() const' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external 'std::ios_base::ios_base()' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external 'std::locale::locale()' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external 'std::ios_base::setf(std::_Iosb<int>::_Fmtflags, std::_Iosb<int>::_Fmtflags)' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external 'std::ios_base::setf(std::_Iosb<int>::_Fmtflags)' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external 'std::ios_base::good() const' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external 'std::ios_base::flags() const' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external 'std::ios_base::width() const' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external 'std::ios_base::width(long long)' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gmock-all [ilink32 Error] Error: Unresolved external '__Atomic_fetch_sub_4' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external '__Atomic_fetch_add_4' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external 'std::locale::id::id(unsigned int)' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|sample8_unittest [ilink32 Error] Error: Unresolved external 'std::exception::exception()' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external 'std::codecvt<wchar_t, char, int>::codecvt<wchar_t, char, int>(unsigned int)' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external 'std::codecvt<wchar_t, char, int>::~codecvt<wchar_t, char, int>()' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external 'std::locale::_Locimp::_New_Locimp(std::locale::_Locimp&)' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external 'std::locale::id::operator unsigned int()' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external 'std::locale::operator =(std::locale&)' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external 'std::codecvt<wchar_t, char, int>::in(int&, const char *, const char *, const char *&, wchar_t *, wchar_t *, wchar_t *&) const' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unresolved external 'std::ios_base::flags(std::_Iosb<int>::_Fmtflags)' referenced from C:\USERS\DONALD\DOCUMENTS\EMBARCADERO\STUDIO\21.0\CATALOGREPOSITORY\GOOGLETEST-2021.09\CBUILDER\LIB\WIN32\RELEASE\GMOCK.LIB|gtest-all [ilink32 Error] Error: Unable to perform link It seems that the gtest libraries don't have all the code needed to run Google Test. Does someone know what I am doing wrong? Greetings, Don.