Hi sirs,
My problem is:
Every time I try to test a method that is defined in a .cpp file I get the following error:
error LNK2019: unresolved external symbol "public: void __thiscall utils::Utils::maskIP(char const *,char *)" (?maskIP@Utils@utils@@QAEXPBDPAD@Z) referenced in function "private: virtual void __thiscall UtilsTest_testMaskIP_Test::TestBody(void)" (?TestBody@UtilsTest_testMaskIP_Test@@EAEXXZ) C:\Users\william\Documents\Visual Studio 2010\Projects\UtilsTest\UtilsTest.obj
However, when I define the method as inline (within the .h file) the test runs ok. Where is my error?
My setup:
Visual Studio 2010
GTest 1.7.0
/MTd (both projects)
Test project with dependency to the main project
Test project with dependency libs GTests (gtestd.lib and gtest_maind.lib).
Best regards