Hello everyone,
I have a basic problem with using google test framework with Code::Blocks on Windows. I've searched but couldn't find needed steps on the internet. I have included needed paths and libgtest.a but still have undefined reference errors whenever I am trying to run.
//
#include "gtest/gtest.h"
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
//
I run this code and got the messages,
obj\Debug\main.o||In function `main':|
C:\Users\Merve\Desktop\Dummy\main.cpp|4|undefined reference to `testing::InitGoogleTest(int*, char**)'|
obj\Debug\main.o||In function `Z13RUN_ALL_TESTSv':|
C:\googletest\include\gtest\gtest.h|2233|undefined reference to `testing::UnitTest::GetInstance()'|
C:\googletest\include\gtest\gtest.h|2233|undefined reference to `testing::UnitTest::Run()'|
Thanks.