Reputation: 15
I'm trying to use the amalgamated version of jsoncpp in my own project. When using my makefile, it complains that it doesn't find json_tool.h:
input/jsoncpp.cpp:193:23: fatal error: json_tool.h: No such file or directory
#include "json_tool.h"
In my makefile I have:
jsoncpp.o: input/jsoncpp.cpp input/json/json.h
$(CXX) $(CXXFLAGS) -c input/jsoncpp.cpp $(LIBS)
with jsoncpp.cpp and json/json.h the ones created by the amalgamate.py script. What am I doing wrong?
Upvotes: 1
Views: 853
Reputation: 385144
You have not set up your include path properly
Add the following to your build command:
-I input/json/
Upvotes: 1