This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Fwd: OpenMP vs. <math.h>
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jeff Johnston <jjohnstn at redhat dot com>
- Cc: gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Tue, 12 Jan 2010 00:25:29 +0100
- Subject: Re: Fwd: OpenMP vs. <math.h>
- References: <4B4BAF4F.1030500@redhat.com>
Hi,
> However, I just encountered tonight a much larger conflict: OpenMP/C++
> and <math.h> are incompatible. STC attached:
>
> $ g++ -D_GLIBCXX_PARALLEL -fopenmp openmp.cxx -lgomp
> In file included from
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/parallel/algobase.h:46,
> from
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/bits/stl_algobase.h:1137,
> from
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/bits/char_traits.h:46,
> from
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/ios:46,
> from
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/ostream:45,
> from
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/iostream:45,
> from openmp.cxx:7:
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/parallel/base.h:112:
> error: expected `)' before ‘/’ token
I'm not sure to understand the entire issue, but that specific problem
with non-uglified names has long been fixed in the parallel-mode bits of
the C++ runtime library: currently in base.h you find __rd_log2 (at some
interim point, in 4.4, it was __log2, I think it wasn't "uglified
enough" and therefore has been further changed, you should find traces
of that either in Bugzilla or on the libstdc++ mailing list).
Paolo.