Skip to content

python amalgamate.py - error #include <json/config.h> #782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pavel-pimenov opened this issue May 30, 2018 · 4 comments
Closed

python amalgamate.py - error #include <json/config.h> #782

pavel-pimenov opened this issue May 30, 2018 · 4 comments

Comments

@pavel-pimenov
Copy link
Contributor

fatal error C1083: Cannot open include file: 'json/config.h': No such file or directory

Fix
#if !defined(JSON_IS_AMALGAMATION)
#include <json/config.h>
#endif

?

@kuang93
Copy link

kuang93 commented May 31, 2018

I have the same error with you, finally i fix it with switching the branch to "0.y.z", and run "python amalgamate.py"

@hhyyrylainen
Copy link

I also had this same error. And everything worked after I added that #if !defined(JSON_IS_AMALGAMATION) check.

@cdunn2001
Copy link
Contributor

Add it where? Can this be added only to amalgamate.py? Please submit a PR so we can fix this permanently.

@hhyyrylainen
Copy link

After amalgamating the latest version adding that check around line 95. This is the code around that area (starting from line 83):

// //////////////////////////////////////////////////////////////////////
// Beginning of content of file: src/lib_json/json_tool.h
// //////////////////////////////////////////////////////////////////////

// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
// Distributed under MIT license, or public domain if desired and
// recognized in your jurisdiction.
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE

#ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED
#define LIB_JSONCPP_JSON_TOOL_H_INCLUDED

#if !defined(JSON_IS_AMALGAMATION)
#include <json/config.h>
#endif

// Also support old flag NO_LOCALE_SUPPORT
#ifdef NO_LOCALE_SUPPORT
#define JSONCPP_NO_LOCALE_SUPPORT
#endif

#ifndef JSONCPP_NO_LOCALE_SUPPORT
#include <clocale>
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants