This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: `float_t' previously declared here
- To: dave at hiauly1 dot hia dot nrc dot ca
- Subject: Re: `float_t' previously declared here
- From: Kriang Lerdsuwanakij <lerdsuwa at usc dot edu>
- Date: Thu, 30 Nov 2000 22:45:44 -0800
- CC: gcc-bugs at gcc dot gnu dot org
> > > /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