Project

General

Profile

Actions

Bug #2734

closed

c++11 is missing stoi

Added by phma about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Build
Target version:
Start date:
11/12/2014
Due date:
% Done:

0%

Estimated time:

Description

$ 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) stoitest.cpp phma, 11/12/2014 03:56 PM
Actions

Also available in: Atom PDF