delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <464CBBD5.4040709@t-online.de> |
Date: | Thu, 17 May 2007 22:32:21 +0200 |
From: | Christian Franke <Christian DOT Franke AT t-online DOT de> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | _GLIBCXX_USE_C99 not working? |
X-ID: | TD30h8ZeQeF2Ou5P4HlVf5XWWIwGRMKIbK-NTrc8o2hTOi+v00lfgK |
X-TOI-MSGID: | 93ad6e6c-4774-416a-9e04-66841b456f47 |
X-IsSubscribed: | yes |
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 |
Defining _GLIBCXX_USE_C99 does not work with current Cygwin C++ includes. Testcase: #define _GLIBCXX_USE_C99 1 // need std::llabs() #include <cstdlib> long long f(long long x) { return std::llabs(x); } Compile fails with: /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/cstdlib:181: error: `::strtold' has not been declared /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/cstdlib:200: error: `__gnu_cxx::strtold' has not been declared The function strtold() does actually not exist in stdlib.h and the corresponding _GLIBCXX_HAVE_STRTOLD in /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/i686-pc-cygwin/bits/c++config.h is not set. But "using ::strtold" exists in the "#if _GLIBCXX_USE_C99" part of /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/cstdlib Workaround: delete the two "using ::strtold" lines from cstdlib. Christian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |