diff options
author | Florin Crișan <florin.crisan@gmail.com> | 2021-05-28 09:05:04 (GMT) |
---|---|---|
committer | Florin Crișan <florin.crisan@gmail.com> | 2021-06-03 06:12:53 (GMT) |
commit | 26a1569c72e85a77096cae6fbe95228a4ca765d6 (patch) | |
tree | 5f8c8c848346c260c87deb9490c7f158e7618f5e | |
parent | e1cc005f4c5a14069ac7492fbe107e44cdff30c8 (diff) | |
download | googletest-26a1569c72e85a77096cae6fbe95228a4ca765d6.zip googletest-26a1569c72e85a77096cae6fbe95228a4ca765d6.tar.gz googletest-26a1569c72e85a77096cae6fbe95228a4ca765d6.tar.bz2 |
#3420 Declare MarkAsIgnored as a DLL exportrefs/pull/3421/head
This was causing the following linker error on Microsoft Visual C++ when compiling as a DLL:
```
googletest-param-test-test.cc.obj : error LNK2019: unresolved external symbol "public: __cdecl testing::internal::MarkAsIgnored::MarkAsIgnored(char const *)" (??0MarkAsIgnored@internal@testing@@QEAA@PEBD@Z) referenced in function "void __cdecl works_here::`dynamic initializer for 'gtest_allow_ignore_NotInstantiatedTest''(void)" (??__Egtest_allow_ignore_NotInstantiatedTest@works_here@@YAXXZ)
```
-rw-r--r-- | googletest/include/gtest/internal/gtest-param-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-param-util.h b/googletest/include/gtest/internal/gtest-param-util.h index 3e49a6b..4af22ca 100644 --- a/googletest/include/gtest/internal/gtest-param-util.h +++ b/googletest/include/gtest/internal/gtest-param-util.h @@ -478,7 +478,7 @@ class ParameterizedTestSuiteInfoBase { // // Report a the name of a test_suit as safe to ignore // as the side effect of construction of this type. -struct MarkAsIgnored { +struct GTEST_API_ MarkAsIgnored { explicit MarkAsIgnored(const char* test_suite); }; |