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 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? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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/