|
From: James Y. <jy...@gm...> - 2009-01-07 08:40:55
|
Message: 7
Date: Wed, 7 Jan 2009 15:51:22 +0800
From: "James Yan" <jy...@gm...>
Subject: [Mingw-users] redefinition error in stdio.h or math.h
To: min...@li...
Message-ID:
<adf...@ma...>
Content-Type: text/plain; charset="iso-8859-1"
hey all,
I use minGW5.1.4 on windows XP, and i try to use the included gcc to compile
my source codes(written in standard c), and then get a lot of "redefinition
error", i dont know why, does anybody could give me a hint? i've searched
google for many times.
thanks!
regards,
J.Y.
===
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:393:
error: re
definition of 'putchar'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:393:
error: re
definition of 'putchar'
In file included from gutil.h:21,
from geo.c:11:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:452: error:
red
efinition of 'sinhf'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:452: error:
red
efinition of 'sinhf'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:456: error:
red
efinition of 'coshf'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:456: error:
red
efinition of 'coshf'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:460: error:
red
efinition of 'tanhf'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:460: error:
red
efinition of 'tanhf'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:482: error:
red
efinition of 'expf'
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 8
Date: Wed, 07 Jan 2009 16:25:45 +0800
From: JonY <10...@gm...>
Subject: Re: [Mingw-users] redefinition error in stdio.h or math.h
To: MinGW Users List <min...@li...>
Message-ID: <496...@gm...>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 1/7/2009 15:51, James Yan wrote:
> hey all,
>
> I use minGW5.1.4 on windows XP, and i try to use the included gcc to
compile
> my source codes(written in standard c), and then get a lot of
"redefinition
> error", i dont know why, does anybody could give me a hint? i've searched
> google for many times.
> thanks!
>
> regards,
> J.Y.
>
> ===
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:393:
error: redefinition of 'putchar'
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:393:
error: redefinition of 'putchar'
> In file included from gutil.h:21,
> from geo.c:11:
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:452:
error: redefinition of 'sinhf'
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:452:
error: redefinition of 'sinhf'
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:456:
error: redefinition of 'coshf'
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:456:
error: redefinition of 'coshf'
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:460:
error: redefinition of 'tanhf'
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:460:
error: redefinition of 'tanhf'
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:482:
error: redefinition of 'expf'
>
>
Hi,
That's strange, stdio.h and math.h seems to be included twice, which
should not be possible with header guards.
Are you using the latest versions of w32api and mingwrt? If so, is is
possible to post the uncut errors? There seems to be more.
===
hey, it's ok when i complie my source code "file by file", one of my source
code file have a large static array there, so i guess too huge files
together make gcc crazy.
|