Skip to content
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

Failed to build with VS2015. #63

Open
Gauravkohli1796 opened this issue Apr 8, 2021 · 0 comments
Open

Failed to build with VS2015. #63

Gauravkohli1796 opened this issue Apr 8, 2021 · 0 comments

Comments

@Gauravkohli1796
Copy link

I tried to build this project with VS2015.By passing -G "Visual Studio 14 2015 Win64" -DCMAKE_GENERATOR_TOOLSET=v140 -DCMAKE_SYSTEM_VERSION=8.1 flag and curl and boost paths along with -DBUILD_STATIC_LIB=ON in cmake command.After this i was successfully able to generate solution files.But when i tried to build them i am getting below errors.

Severity Code Description Project File Line
Error C2039 'type': is not a member of 'std::enable_if<false,int>' json11 c:\users\gaurav.kohli\downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C2039 'type': is not a member of 'std::enable_if<false,int>' json11 c:\users\gaurav.kohli\downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C2039 'type': is not a member of 'std::enable_if<false,int>' ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C2139 'json11::Json': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_constructible' json11 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits 581
Error C2139 'json11::Json': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_constructible' ppconsul C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits 581
Error C2139 'json11::Json': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_constructible' ppconsul C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits 581
Error C2139 'json11::Json': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_constructible' ppconsul C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits 581
Error C2139 'json11::Json': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_constructible' ppconsul C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits 581
Error C2139 'json11::Json': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_constructible' ppconsul C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits 581
Error C2139 'json11::Json': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_constructible' ppconsul C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits 581
Error C2139 'json11::Json': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_constructible' ppconsul C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits 581
Error C2227 left of '->first' must point to class/struct/union/generic type json11 c:\users\gaurav.kohli\downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2227 left of '->second' must point to class/struct/union/generic type json11 c:\users\gaurav.kohli\downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2227 left of '->first' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2227 left of '->first' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2227 left of '->first' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2227 left of '->first' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2227 left of '->first' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2227 left of '->first' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2227 left of '->first' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2227 left of '->second' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2227 left of '->second' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2227 left of '->second' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2227 left of '->second' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2227 left of '->second' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2227 left of '->second' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2227 left of '->second' must point to class/struct/union/generic type ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2228 left of '.begin' must have class/struct/union json11 c:\users\gaurav.kohli\downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2228 left of '.begin' must have class/struct/union json11 c:\users\gaurav.kohli\downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2228 left of '.begin' must have class/struct/union json11 c:\users\gaurav.kohli\downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 107
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 100
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 101
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 107
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 107
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 107
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 107
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 107
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 107
Error C2228 left of '.begin' must have class/struct/union ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 107
Error C2535 'json11::Json::Json(const M &)': member function already defined or declared json11 c:\users\gaurav.kohli\downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 109
Error C2535 'json11::Json::Json(const M &)': member function already defined or declared ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 109
Error C2535 'json11::Json::Json(const M &)': member function already defined or declared ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 109
Error C2535 'json11::Json::Json(const M &)': member function already defined or declared ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 109
Error C2535 'json11::Json::Json(const M &)': member function already defined or declared ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 109
Error C2535 'json11::Json::Json(const M &)': member function already defined or declared ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 109
Error C2535 'json11::Json::Json(const M &)': member function already defined or declared ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 109
Error C2535 'json11::Json::Json(const M &)': member function already defined or declared ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 109
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int json11 c:\users\gaurav.kohli\downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int json11 c:\users\gaurav.kohli\downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 102
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ppconsul C:\Users\gaurav.kohli\Downloads\ppconsul-master\ppconsul-master\ext\json11\json11.hpp 108

On the other hand i am successfully able to build the project with VS2019.
Using cmake command with curl and boost path without _G flag to get solution files.
and cmake --build . command to build project.

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

1 participant