- What is the issue you have?
When I include the file "json.hpp" in my source code I get the following error(s)
/inc/json.hpp:32:35: error: stray '\302' in program
<title>json/json.hpp at develop · nlohmann/json · GitHub</title>
\
inc/json.hpp:360:76: error: stray '\206' in program
↵
\
inc/json.hpp:1067:70: error: stray '#' in program
#
define NLOHMANN_JSON_VERSION_PATCH 3
"json.hpp:33275:189: error: expected unqualified-id before '<' token
#include <vector> // vector"
<this follows for virtually every line of the header>
- Please describe the steps to reproduce the issue. Can you provide a small but working code example?
#include "json.hpp"
<my code that does not use any json features yet>
- What is the expected behavior?
That the code should compile
-
And what is the actual behavior instead?
Several pages of compile errors
-
Which compiler and operating system are you using? Is it a supported compiler?
-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
OS - macos but the compilation is happening while building a centos 7 docker image.
I use Cmake and have SET(CMAKE_CXX_STANDARD 17)
- Did you use a released version of the library or the version from the
develop branch?
Release
When I include the file "json.hpp" in my source code I get the following error(s)
/inc/json.hpp:32:35: error: stray '\302' in program
<title>json/json.hpp at develop · nlohmann/json · GitHub</title> \ inc/json.hpp:360:76: error: stray '\206' in program ↵ \ inc/json.hpp:1067:70: error: stray '#' in program #define NLOHMANN_JSON_VERSION_PATCH 3"json.hpp:33275:189: error: expected unqualified-id before '<' token
#include <vector> // vector"
<this follows for virtually every line of the header>
#include "json.hpp"
<my code that does not use any json features yet>
That the code should compile
And what is the actual behavior instead?
Several pages of compile errors
Which compiler and operating system are you using? Is it a supported compiler?
-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
OS - macos but the compilation is happening while building a centos 7 docker image.
I use Cmake and have SET(CMAKE_CXX_STANDARD 17)
developbranch?Release