From owner-freebsd-toolchain@FreeBSD.ORG Wed May 6 09:02:14 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6CF2C992 for ; Wed, 6 May 2015 09:02:14 +0000 (UTC) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cloud.theravensnest.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D30917D6 for ; Wed, 6 May 2015 09:02:13 +0000 (UTC) Received: from [192.168.0.7] (cpc16-cmbg15-2-0-cust60.5-4.cable.virginm.net [86.5.162.61]) (authenticated bits=0) by theravensnest.org (8.15.1/8.15.1) with ESMTPSA id t4692BMP077855 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 6 May 2015 09:02:12 GMT (envelope-from theraven@FreeBSD.org) X-Authentication-Warning: theravensnest.org: Host cpc16-cmbg15-2-0-cust60.5-4.cable.virginm.net [86.5.162.61] claimed to be [192.168.0.7] Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: strtoll is not defined when compiling with -std=c++03 From: David Chisnall In-Reply-To: Date: Wed, 6 May 2015 10:02:06 +0100 Cc: freebsd-toolchain@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8E63EC13-F64E-4C18-B886-0654B331E9F2@FreeBSD.org> References: To: Gleb Popov <6yearold@gmail.com> X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2015 09:02:14 -0000 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 >=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"