Um... I found I need to add the preprocessor
GTEST_LINKED_AS_SHARED_LIBRARY=1 to the DLL code to export those
methods correctly. But I got a C4275 warning in my DLL code. The
warning is generated at line 158 of gtet-test-part.h:
class GTEST_API_ HasNewFatalFailureHelper
: public TestPartResultReporterInterface {
....
Apparently base class TestPartResultReporterInterface is not DLL
exportable. Can I ignore this warning safely?
Thanks,
Roger