I've built a GCC cross-compiler, and was hoping to at least use C++11 smart pointers and/or some C++11 features that don't require an updated stdlib. However, when I use -std=C++11, I get whole pages of errors in the header files, e.g.:
/usr/local/amiga/adtools-ppc-cyg64-20170623-404/ppc-amigaos/include/c++/5.4.0/bits/basic_string.h: In function ‘long long int std::__cxx11::stoll(const string&, std::size_t*, int)’:
/usr/local/amiga/adtools-ppc-cyg64-20170623-404/ppc-amigaos/include/c++/5.4.0/bits/basic_string.h:5274:31: error: ‘strtoll’ is not a member of ‘std’
{ return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
Yes, errors in the compiler's stdlib header files...
Has anyone else had more success? If so, how did you get it working? It's getting rather frustrating not being able to use newer C++ functionality.
Hans
P.S., Anyone know how to build the *.lha archive for the native GCC when built from the adtools source? Compilation completed, but I've got no idea how to transfer a fully working compiler to my AmigaOS machine.