You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe what you want to achieve.
I know i can use single_include in my project, but i want to build and test this library in VS 2017, especially i add my code.
Describe what you tried.
In VS 2017, i open this library as CMake Project with File - Open - CMake....
And then, CMake - Build All.
But i got these error:
.\json-develop\test\src\unit-udt.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
.\json-develop\test\src\unit-udt.cpp(115): error C2001: newline in constant
.\json-develop\test\src\unit-udt.cpp(202): error C2001: newline in constant
.\json-develop\test\src\unit-udt.cpp(276): error C2672: 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::get': no matching overloaded function found
.\json-develop\test\src\unit-udt.cpp(276): error C2783: 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer> nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::get(void) const': could not deduce template argument for '__formal'
.\json-develop\single_include\nlohmann\json.hpp(17101): note: see declaration of 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::get'
.\json-develop\test\src\unit-udt.cpp(276): error C2789: 'parsed_book': an object of const-qualified type must be initialized
.\json-develop\test\src\unit-udt.cpp(276): note: see declaration of 'parsed_book'
.\json-develop\test\src\unit-udt.cpp(279): error C2672: 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::get': no matching overloaded function found
.\json-develop\test\src\unit-udt.cpp(279): error C2783: 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer> nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::get(void) const': could not deduce template argument for '__formal'
.\json-develop\single_include\nlohmann\json.hpp(17101): note: see declaration of 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::get'
.\json-develop\test\src\unit-udt.cpp(278): error C2789: 'contacts': an object of const-qualified type must be initialized
.\json-develop\test\src\unit-udt.cpp(278): note: see declaration of 'contacts'
.\json-develop\test\src\unit-udt.cpp(281): error C2672: 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::get': no matching overloaded function found
.\json-develop\test\src\unit-udt.cpp(281): error C2783: 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer> nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::get(void) const': could not deduce template argument for '__formal'
.\json-develop\single_include\nlohmann\json.hpp(17101): note: see declaration of 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::get'
Describe which system (OS, compiler) you are using.
Windows 10
Describe which version of the library you are using (release version, develop branch).
-- Building for: Visual Studio 15 2017
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362.
-- The CXX compiler identification is MSVC 19.16.27035.0
The text was updated successfully, but these errors were encountered:
1. install mingw
2. download ninja from https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-win.zip
3. follow the scripts of appveyor.yml
finally, you can get nlohmann_json_sln.
Open it, modify code and then rebuild in VS 2017.
Describe what you want to achieve.
I know i can use single_include in my project, but i want to build and test this library in VS 2017, especially i add my code.
Describe what you tried.
In VS 2017, i open this library as CMake Project with
File - Open - CMake...
.And then,
CMake - Build All
.But i got these error:
Also, these error is similar to #664 (comment)
Describe which system (OS, compiler) you are using.
Windows 10
Describe which version of the library you are using (release version, develop branch).
-- Building for: Visual Studio 15 2017
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362.
-- The CXX compiler identification is MSVC 19.16.27035.0
The text was updated successfully, but these errors were encountered: