https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110653
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Created attachment 55534 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55534&action=edit libstdc++: std::stoi etc. do not need C99 <stdlib.h> support Dave, does this patch work for hppa64-hp-hpux11.11 ? It should allow you to compile + run the code below: #include <string> int main() { std::string z = "0"; return std::stoi(z) + std::stol(z) + std::stoul(z) + std::stoll(z) + std::stoull(z) + std::stod(z); } I'm not sure if double and long double are the same representation on this target, but if they are then std::stold("0.0") should work too.