I'm doing an exercise meant to teach about unit testing using the Google Test Framework on a unix word count application. I designed a few test cases, but I can't even get far enough to see if they're useful. I'm continually running into a problem when I attempt to build from a makefile.
$ make
cc -isystem /Users/user/Documents/counter/googletest/include -g -Wall -Wextra -pthread -c /Users/user/Documents/counter/wc.c
/Users/user/Documents/counter/googletest/include/gtest/gtest.h:54:10: fatal error:
'limits' file not found
#include <limits>
^
1 error generated.
make: *** [wc_unittest.o] Error 1
For reference, here's the top of gtest.h
#ifndef GTEST_INCLUDE_GTEST_GTEST_H_
#define GTEST_INCLUDE_GTEST_GTEST_H_
#include <limits>
#include <ostream>
#include <vector>
I believe I included the gtest directory and file correctly in my source code, but can't seem to figure this out. Is there something wrong with my path or how I've specified the directory?
I'm running everything locally in terminal, compiling using gcc, OS X 10.11.4
Aucun commentaire:
Enregistrer un commentaire