Date: Wed, 6 May 2015 11:20:37 +0300 From: Gleb Popov <6yearold@gmail.com> To: freebsd-toolchain@freebsd.org Subject: strtoll is not defined when compiling with -std=c++03 Message-ID: <CALH631kOEj31JZze_%2B59KMzTXweAai8t2F2ZgvfcJ2QjyDr5Eg@mail.gmail.com>
index | next in thread | raw e-mail
Hello. I'm compiling following code
#include <stdlib.h>
int main()
{
strtoll(0,0,0);
return 0;
}
with -std=c++03 and getting:
tst.cpp:5:1: error: use of undeclared identifier 'strtoll'
strtoll(0,0,0);
^
1 error generated.
Preprocessing system headers with this flag shows that __LONG_LONG_SUPPORTED
isn't defined. Is this a bug?
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631kOEj31JZze_%2B59KMzTXweAai8t2F2ZgvfcJ2QjyDr5Eg>
