This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: `float_t' previously declared here


> > > /home/dave/gnu/gcc-2.97/objdir/gcc/xgcc -B/home/dave/gnu/gcc-2.97/objdir/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -DHAVE_CONFIG_H -I. -I../../../../libstdc++-v3/libmath -I.. -I../../../../libstdc++-v3/include -I../include -g -O3 -c ../../../../libstdc++-v3/libmath/c_logl.c  -fPIC -DPIC -o .libs/c_logl.o
> > > /usr/include/bits/mathdef.h:27: redefinition of `float_t'
> > > /usr/include/bits/mathdef.h:27: `float_t' previously declared here
> >
> > Could you suggest a work-around.   I can only think of modifying
> > the Makefiles to add some option to the compile command.
> > However, I was hoping you had a better solution.
>
> I wrapped mathdef.h to prevent multiple inclusion from math.h and
> complex.h.  This suggests an include hack is needed to fix the problem.
> However, I havn't tried to work out the details.
>

I just submitted a patch to gcc-patches mailing list.   It adds
mathdef.h
to the list of files processed by fixincludes.  The problem should be
fixed
once the patch is approved.

--Kriang



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