Код: Выделить всё
class MyClass
{
public:
virtual void myprint(const char* format, ...) = 0;
};
Код: Выделить всё
class Mock : public MyClass
{
public:
MOCK_METHOD1(myprint, void (const char* format, ...));
}
Код: Выделить всё
error: 'Result' in 'struct testing::internal::Function' does not name a type
MOCK_METHOD1(myprint, void (const char* format, ...));
^
error: incomplete type 'testing::internal::Function' used in nested name specifier
error: incomplete type 'testing::internal::Function' used in nested name specifier
error: template argument 1 is invalid
error: field 'gmock1_print_15' has incomplete type 'testing::internal::FunctionMocker'
Подробнее здесь: https://stackoverflow.com/questions/464 ... -arguments