| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; q=dns; s= | |
| default; b=GQB8KHvLrFMxEffaRTgIpOSmEGLDllFLo+VFKmzS+vqKQNm3lc4Ro | |
| zI4VF8GZHuMx44BmgbTAKnUx9t+CSZjDSA9GvR9z/+VipO5VVFZfo+nUceXEg4jt | |
| UyMpFEVXRZsZTKDYN4rKAEqBv+L8aPNOPIfxENpkPPqQxdfmtbLu6w= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; s=default; | |
| bh=qOmSSHwmO2ikf15KQCh0JeJCNV4=; b=VMZlmYVP9PWprjFNzIHw7g7UdVky | |
| d6Bo7O55JSY6HHZIMe6Pw09rDiexkT1c7/78CYVbxdnczj5TDZAxa7dVBsNx5S8x | |
| HXL+rAadwOa25+ZxrPP4HLdH46tXkghhab2dCmPIIJsh9q6dOv6jib0DayVIgkJC | |
| /SXy4iixTauOS8E= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-5.2 required=5.0 tests=AWL,BAYES_05 autolearn=ham version=3.3.2 |
| X-HELO: | calimero.vinschen.de |
| Date: | Fri, 13 Mar 2015 10:46:47 +0100 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: g++4.9.2 fails to compile standard C++11 code |
| Message-ID: | <20150313094647.GB20626@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <CAJ+GnyeViXtbQ6S=tC6z8XVZgOcoHv6Gi0ww8W1HEG_XKJrhUw AT mail DOT gmail DOT com> <20150312095559 DOT GA2644 AT dimstar DOT local DOT net> <CAEhDDbDrfTgUrxOdk3h2T=zn3Edng12vtnrb5csAS7fRYM9PMQ AT mail DOT gmail DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <CAEhDDbDrfTgUrxOdk3h2T=zn3Edng12vtnrb5csAS7fRYM9PMQ@mail.gmail.com> |
| User-Agent: | Mutt/1.5.23 (2014-03-12) |
--GRPZ8SYKNexpdSJ7
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mar 13 09:13, Csaba Raduly wrote:
> Hi
>=20
> On Thu, Mar 12, 2015 at 10:55 AM, Duncan Roe wrote:
> > On Wed, Mar 11, 2015 at 06:55:16PM -0400, Vlad Gheorghiu wrote:
> >> The following code fails to compile under latest cygwin, Windows 7,
> >> g++4.9.2. Compiled with g++ -std=3Dc++11 test.cpp. The compiler
> >> complains that std::log2 is not a member of std.
> >>
> >> #include <cmath>
> >> #include <iostream>
> >>
> >> int main()
> >> {
> >> auto x =3D std::log2(10);
> >> std::cout << x << std::endl;
> >> }
> >>
> >>
> >> Verbatim error:
> >>
> >> g++ -std=3Dc++11 test.cpp
> >> test.cpp: In function 'int main()':
> >> test.cpp:5:11: error: 'log2' is not a member of 'std'
> >> auto x =3D std::log2(10);
> >> ^
> >> test.cpp:5:11: note: suggested alternative:
> >> In file included from
> >> /usr/lib/gcc/i686-pc-cygwin/4.9.2/include/c++/cmath:44:0,
> >> from test.cpp:1:
> >> /usr/include/math.h:305:15: note: ???log2???
> >> extern double log2 _PARAMS((double));
> >>
> > FWIW, this program works fine under Linux / gcc4.8.2:
>=20
> ISTR a discussion about some C++11 features being configured away due
> to Cygwin's lack of some C library functions ("to_string not a member
> of std"): https://sourceware.org/ml/cygwin/2015-01/msg00245.html
>=20
> Your issue may be related (I'm guessing here because I don't have
> Cygwin at hand right now).
I guess the same. The problem is probably related to the fact that
newlib is still missing most of the long double functions (cosl, sinl,
etc). The libstdc++ configury seems to activate the related std methods
only if *all* related C library functions for double, float and long
double (e.g. cos, cosf, cosl) are implemented by the platform.
Corinna
--=20
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--GRPZ8SYKNexpdSJ7
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBAgAGBQJVArIHAAoJEPU2Bp2uRE+gwNEQAIHaU0y8g1fn9lp//Yql9Ifm
L+c6tdjmpZ8/6bpKTSw6wj7ohP2cSd1HIzFdmeYrHQiuVHWFQZydLw8+JB1MOlOv
aenlbPD4nbjiokYGJuH+MpScqyfIA8XtXoRjD0Phu/yfR6J3bZFr+sWD6TQ9LI0V
KVs3ycmv9QHugsZj1RyjmTMtV/wqaMOLFEpRt+K5lHWficQdyjYsaFvkYcxZfnN4
7n74g/lpGMpW4EBWK1dMbaT7l2Ak76vBf7/4nI0ruIBTMycGb8KWVZVCbO8w3Z54
WLR1u639uxQQAQX2fyWlXshOVFiyBsh3jEoIUWKhoWm+8zFcGBJBBGTr3Ouf+WDB
XifBfdp3biSKA/MCD7hrDuk/hN6jdFt2ReL0bilvl0oJv7ePkck2xJFZ3Y7zJVFZ
ie8PckBfzrc+4hZDhrVvfQXPofe2VWQit3SIa1/YsQSbzqGS6q9a8DNoSMPFrMuo
xPbDhwL0bTu+XDD0irvI4BB0B3/rc6jRKwheLTUVxc3o/1UPLvpJEkZYC0nafgyt
CvUS4B7JSi7rMIEw+AFNeMZAJuLM5tihK8rj7T75mTrBp4ywaQaWPBHH06SG9D/J
cCocZPm3mibH+S6gCkciv3irsEm+mCgaMgtQDflsfsvYtsBfc3aZLaaEa4A8rP6N
J76NlshZfBx6dp5RnKoX
=vMIV
-----END PGP SIGNATURE-----
--GRPZ8SYKNexpdSJ7--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |