From owner-freebsd-toolchain@FreeBSD.ORG Wed May 6 08:21:09 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 0F7A2400 for ; Wed, 6 May 2015 08:21:09 +0000 (UTC) Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D0A3812BB for ; Wed, 6 May 2015 08:21:08 +0000 (UTC) Received: by igbyr2 with SMTP id yr2so124245621igb.0 for ; Wed, 06 May 2015 01:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=LpzgY1/8+YxvCr4i1CvnVa2EDGx+QqCzCHg3iy5MxhE=; b=skZC4HEbZJCcxBKnppOKCcP2hFLX+Nns82Z8oU0JlLR76aGuIljvvHyrJ4TeC7W3RF CTfKlyivBfIhiAVhNWboucMAFKGTBU/aoeIrt1AjpiQYM9fJnd+STeSqYtmd/d5W3xZL iC4As0daaImd1gWfS1V/9FkuLkCYNwXttaoPWXhhQlkFIHQeSQNy51RSKA7IeroAyeK/ 3C12h7jZdE7iSoJu+mVVH3dW9FVKrOhBYWSlGIkjqKZVAcyQKlDcaZ4Kkf8sZuTe7TgI FaQrBkQlti7IDTqlzZ1YqvGlfXveJOLV7FHswJX0NORh6+Tr4LEI/beV16Aa0HRhWeJC e8HA== X-Received: by 10.107.17.198 with SMTP id 67mr36902417ior.64.1430900468241; Wed, 06 May 2015 01:21:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.136.35 with HTTP; Wed, 6 May 2015 01:20:37 -0700 (PDT) From: Gleb Popov <6yearold@gmail.com> Date: Wed, 6 May 2015 11:20:37 +0300 Message-ID: Subject: strtoll is not defined when compiling with -std=c++03 To: freebsd-toolchain@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 08:21:09 -0000 Hello. I'm compiling following code #include 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? 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"