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

[Question] Issue when using Appveyor when compiling library #603

Closed
tuananh opened this issue Jun 3, 2017 · 2 comments
Closed

[Question] Issue when using Appveyor when compiling library #603

tuananh opened this issue Jun 3, 2017 · 2 comments

Comments

@tuananh
Copy link

tuananh commented Jun 3, 2017

Hi,

Not sure if this is a right place to ask. I have a small project that use json as submodule library.

When I tried to use AppVeyor, I got some errors like this in the install step

src/json.hpp(8936): error C2589: '(': illegal token on right side of '::'
src/json.hpp(8933): note: while compiling class template member function 'std::string nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::input_buffer_adapter::read(::size_t,::size_t)'

and this

json.hpp(8936): error C2062: type 'unknown-type' unexpected

Does any of you know what options/ flag I have to use in AppVeyor to make it works?

Regards,

@tuananh
Copy link
Author

tuananh commented Jun 3, 2017

I had to #define NOMINMAX to prevent the error. Not sure why you don't need it in your appveyor !?

@tuananh tuananh closed this as completed Jun 3, 2017
@nlohmann
Copy link
Owner

nlohmann commented Jun 4, 2017

I have no idea, sorry.

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

No branches or pull requests

2 participants