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
with g++ 4.9.3 on cygwin 64-bit (I'm using Windows 10)
$ g++ --version
g++ (GCC) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This is the compiler output
$ g++ main.cpp -std=c++11 -o main
In file included from main.cpp:1:0:
json.hpp: In member function ‘std::string nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberFloatType, AllocatorType>::iterator_wrapper::iterator_wrapper_internal::calculate_key()’:
json.hpp:5725:32: error: ‘to_string’ is not a member of ‘std’
return std::to_string(array_index);
^
json.hpp: In member function ‘long double nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberFloatType, AllocatorType>::lexer::get_number() const’:
json.hpp:6940:36: error: ‘strtold’ is not a member of ‘std’
const auto float_val = std::strtold(reinterpret_cast<typename string_t::const_pointer>(m_start),
^
json.hpp:6940:36: note: suggested alternative:
In file included from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/cstdlib:72:0,
from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/bits/stl_algo.h:59,
from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/algorithm:62,
from json.hpp:41,
from main.cpp:1:
/usr/include/stdlib.h:279:20: note: ‘strtold’
extern long double strtold (const char *__restrict, char **__restrict);
The text was updated successfully, but these errors were encountered:
I've tried to compile the following code
with g++ 4.9.3 on cygwin 64-bit (I'm using Windows 10)
This is the compiler output
The text was updated successfully, but these errors were encountered: