I am trying to use the googletest library to test code in the arduino ide, and I keep getting errors such as
In function __static_initialization_and_destruction_0' undefined reference to `std::ios_base::Init::Init()'
There are 50 more lines of this error, including
undefined reference to testing::Test::SetUp()' undefined reference to testing::Test::TearDown()
Since even the basic test functions are failing, I assume I made a mistake in where I put my library files, or perhaps I'm simply not including the correct files.
Currently I am only including gtest/gtest.h
, as that is all I have seen in other examples in order for the code to work.
I have built the googletest library using cmake and make, and included it within the project.
Does anyone have an idea of what I can do to fix this?