This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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
- Date: Tue, 22 Dec 2015 22:30:17 -0500
- Subject: Unable to successfully include cstdlib.h in gcc-g++-4.9.3-1
- Authentication-results: sourceware.org; auth=none
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