OK:
I have followed the instructions laid out above and it all makes sense,
right up until I try to write a test.
i get the auto complete so im guessing ive linked things correctly ...however when i try to compile i get errors.
I am very new to C++ and i am sure i am missing something in how to reference the project I am trying to test...here's my code & the error message
(any googling has simply referred me to the link /search directories which i have already set, so perhaps it is simply a syntax problem on my end
any help appreciated (I've a feeling this is going to be one of those REALLY obvious problems once its pointed out to you situations.
\firsttests.cpp||In member function 'virtual void TestOneForTheRoad::RunImpl() const':|
obj\Debug\firsttests.o:\firsttests.cpp|8|undefined reference to `MyTic::getLimit() const'|
the code is:
#include "firsttests.h"
#include "myTic.h"
#include "UnitTest++.h"
TEST( OneForTheRoad)
{
MyTic theTick;
float theLimit = theTick.getLimit();
}
I've also tried
MyTic theTick = MyTic::MyTic();
const float theLimit = theTick.getLimit();