This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Unable to successfully include cstdlib.h in gcc-g++-4.9.3-1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]