This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: Fwd: OpenMP vs. <math.h>


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.


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