Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2015 10:02:06 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Gleb Popov <6yearold@gmail.com>
Cc:        freebsd-toolchain@freebsd.org
Subject:   Re: strtoll is not defined when compiling with -std=c++03
Message-ID:  <8E63EC13-F64E-4C18-B886-0654B331E9F2@FreeBSD.org>
In-Reply-To: <CALH631kOEj31JZze_%2B59KMzTXweAai8t2F2ZgvfcJ2QjyDr5Eg@mail.gmail.com>
References:  <CALH631kOEj31JZze_%2B59KMzTXweAai8t2F2ZgvfcJ2QjyDr5Eg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
C++11 was the first version of C++ to include a long long type, so this =
doesn=E2=80=99t look like a bug. =20

David

> On 6 May 2015, at 09:20, Gleb Popov <6yearold@gmail.com> wrote:
>=20
> Hello. I'm compiling following code
>=20
> #include <stdlib.h>
>=20
> int main()
> {
> strtoll(0,0,0);
> return 0;
> }
>=20
> with -std=3Dc++03 and getting:
>=20
> tst.cpp:5:1: error: use of undeclared identifier 'strtoll'
> strtoll(0,0,0);
> ^
> 1 error generated.
>=20
> Preprocessing system headers with this flag shows that =
__LONG_LONG_SUPPORTED
> isn't defined. Is this a bug?
> _______________________________________________
> freebsd-toolchain@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
> To unsubscribe, send any mail to =
"freebsd-toolchain-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8E63EC13-F64E-4C18-B886-0654B331E9F2>