diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 7 | ||||
-rw-r--r-- | test/checker.cc | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile index 3e6fd74..398ebc1 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,8 +3,11 @@ check: build ./checker -build: checker.cc - g++ -o checker -g -O2 -I ../include -Wall -Wextra $^ +build: checker.cc ../lib/libcommon.a + g++ -o checker -g -O2 -I ../lib/include -Wall -Wextra $^ + +../lib/libcommon.a: + make -C ../lib clean: rm -f checker diff --git a/test/checker.cc b/test/checker.cc index d5afa87..2707929 100644 --- a/test/checker.cc +++ b/test/checker.cc @@ -2,8 +2,9 @@ #include "test_helper.h" -#include <cstdio> -#include <fmt.h> +extern "C" { + #include <fmt.h> +} void check_dec() { char have[16]; |