1

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?

1 Answer 1

1

You have not set up your include path properly

Add the following to your build command:

-I input/json/
Sign up to request clarification or add additional context in comments.

3 Comments

Good point. (Though it should be -I input/.) We should be using #include "json/json.h" instead of #include <json/json.h>. Fixed.
@cdunn Yeah granted :) I guess it's down to you to provide an authoritative answer now :)
s/intented/intended/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.