$ make
compiling AllTests.cpp
compiling LightSchedulerRandomizeTest.cpp
compiling LightSchedulerTest.cpp
compiling RandomMinuteTest.cpp
compiling LightControllerTestSpy.cpp
compiling FakeTimeServiceTest.cpp
compiling LightControllerSpy.c
In file included from G:/Users/j/jsolamer/Desktop/cpputest-3.8/cpputest-3.8/include /CppUTest/MemoryLeakDetectorMallocMacros.h:12:0,
from <command-line>:0:
G:/Users/j/jsolamer/Desktop/cpputest-3.8/cpputest-3.8/include/CppUTest/CppUTestConf ig.h:222:14: error: ISO C90 does not support ‘long long’ [-Werror=long-long]
typedef long long cpputest_longlong;
^
G:/Users/j/jsolamer/Desktop/cpputest-3.8/cpputest-3.8/include/CppUTest/CppUTestConf ig.h:223:23: error: ISO C90 does not support ‘long long’ [-Werror=long-long]
typedef unsigned long long cpputest_ulonglong;
^
cc1: all warnings being treated as errors
make: *** [G:/Users/j/jsolamer/Desktop/cpputest-3.8/cpputest-3.8/build/MakefileWork er.mk:509: objs/mocks/LightControllerSpy.o] Error 1
- In order to get rid of that, and after googling a while, I added this line to the makefile: CPPUTEST_CFLAGS += -std=c99
- After doing so, I got rid of that error, but I got the following error:
$ make
compiling LightControllerSpy.c
compiling FakeRandomMinute.c
compiling FakeTimeService.c
compiling RandomMinute.c
compiling LightScheduler.c
Building archive lib/libt0.a
a - objs/src/HomeAutomation/RandomMinute.o
a - objs/src/HomeAutomation/LightScheduler.o
make: *** No rule to make target 'G:/Users/j/jsolamer/Desktop/cpputest-3.8/cpputest-3.8/lib/libCpp UTest.a', needed by 't0_tests'. Stop.
I got rid of the error by copying the /lib folder from the /cpputest-3.8/cpputest_build to the /cpputest-3.8 folder (which is the main cpputest folder). And I managed to compile the code t0, showing the following: