[DragonFlyBSD - Bug #2734] c++11 is missing stoi

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Thu Nov 13 13:31:58 PST 2014


Issue #2734 has been updated by swildner.


And in fact, using

g++ -D_GLIBCXX_USE_C99 --std=c++11 -o stoi stoi.cpp

it will compile.


----------------------------------------
Bug #2734: c++11 is missing stoi
http://bugs.dragonflybsd.org/issues/2734#change-12286

* Author: phma
* Status: New
* Priority: Normal
* Assignee: 
* Category: Build
* Target version: 4.0.x
----------------------------------------
$ g++ --std=c++11 -o stoitest stoitest.cpp
stoitest.cpp: In function 'int main(int, char**)':
stoitest.cpp:18:15: error: 'stoi' was not declared in this scope

This program compiles and runs on Ubuntu Linux, using g++ 4.8.2. It produces the above error on DragonFly BSD, both using the g++ 4.7.4 in world and using g++ 4.8.3 installed as a package.

---Files--------------------------------
stoitest.cpp (359 Bytes)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list