delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/22/22:30:51

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:mime-version:date:message-id:subject:from:to
:content-type:content-transfer-encoding; q=dns; s=default; b=woV
7npSCf7V88GRL2Xi7L8Bf87FV75ChiMxxggGbq+IoEU4oDHcvSt0ke0dSTv4JVxe
3ESOcDjap5gWtlw9LfeXYMerOfBDPZxtuUkINUFagmv7/JgJWCkCqA2L27VvIRlm
LlWlqM6pQIp5pd5OAIlWsaq9xr7V4GC88HHNWsHo=
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:mime-version:date:message-id:subject:from:to
:content-type:content-transfer-encoding; s=default; bh=phA+EazFW
JpnUX7+8dcnTtbRl98=; b=e2jtS5srW5kQBzLuL6m3aLjdcY4W5uncher7dKY9Z
NmYQK3Qkvwy4j4fXW6iShHMrnKUyx5JGZv4kCrBdddOjmymvwMjSZ5IGmx4BohaI
G5k/8j10M3uGGK8tnF9KwXjO1cT41pG9Bxxw77798uB4EqXt7bP7xLEhJ87+Ywh9
tg=
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=0.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=179
X-HELO: mail-lb0-f173.google.com
MIME-Version: 1.0
X-Received: by 10.112.172.201 with SMTP id be9mr9828821lbc.49.1450841417793; Tue, 22 Dec 2015 19:30:17 -0800 (PST)
Date: Tue, 22 Dec 2015 22:30:17 -0500
Message-ID: <CAHvsuxkFrRn4_Z4NWCT_17csKUo_fFvYhVTCb2bg1BwW_ZwqaA@mail.gmail.com>
Subject: Unable to successfully include cstdlib.h in gcc-g++-4.9.3-1
From: ravi r <ravi480000 AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tBN3Uk0q022468

When the configure script of RQuantLib package tries to check for boost
development files by compiling this program

        $ cat > /tmp/conftest.cpp <<-EOF
        #include <boost/version.hpp>
        #include <boost/shared_ptr.hpp>
        #include <boost/assert.hpp>
        #include <boost/current_function.hpp>

        int main () {
                ;
                return 0;
        }
        EOF

it gets this error

        $ g++ -m32 -c -O2 -Wall -mtune=3Dcore2  -I/usr/local/include -fpermissiv
e
         /tmp/conftest.cpp
        In file included from /usr/local/include/boost/core/demangle.hpp:36:0,
                         from /usr/local/include/boost/core/typeinfo.hpp:119,
                         from /usr/local/include/boost/detail/sp_typeinfo.hpp:20
,
                         from
        /usr/local/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:27
,
                         from
        /usr/local/include/boost/smart_ptr/detail/sp_counted_base.hpp:51,
                         from
        /usr/local/include/boost/smart_ptr/detail/shared_count.hpp:29,
                         from /usr/local/include/boost/smart_ptr/shared_ptr.hpp:
28,
                         from /usr/local/include/boost/shared_ptr.hpp:17,
                         from /tmp/conftest.cpp:2:
        /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/cstdlib:178:10: error: e
xpected unqualified-id before ‘__int128’
           inline __int128
                  ^

This is on a 64 bit cygwin installation over windows 7.

The definition in cstdlib.h which is source of the problem is
    177 #if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_INT128)
    178   inline __int128
    179   abs(__int128 __x) { return __x >=3D 0 ? __x : -__x; }
    180 #endif

I have cygwin package libboost-devel-1.58.0-1 installed.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019