Michael Daniels(deleted)
|
Re: GCC nor 4.8.3 neither 4.9.3 doesn't support to_string C++11 feature
|
Michael Daniels(deleted)
08/16/2016 11:52 AM
post116656
|
Re: GCC nor 4.8.3 neither 4.9.3 doesn't support to_string C++11 feature
As Mario had mentioned in the other thread, this is caused by _GLIBCXX_USE_C99 not being defined.
The configure script for libstdc++-v3 will check for c99 functions with -std=c++98 set, but our system headers won't
expose the c99 functions in this case.
This can be fixed by patching the system headers to expose the c99 functions regardless of the c++ standard specified
and rebuilding gcc.
It might also be possible to edit the configure script to use -std=c++0x and rebuild gcc, but I cannot guarantee that
won't cause problems in the headers outside c++0x/c++11.
Then there is the hacky solution which is to just force _GLIBCXX_USE_C99 to be defined and hope for the best. I wouldn't
really recommend this and cannot guarantee this will not cause other problems, but to each their own.
|
|
|