I get the same errors as OP with latest mingw
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrap
+per.exe
Target: mingw32
Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,f
+ortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-
+shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-d
+ebug --enable-version-specific-runtime-libs --disable-werror --build=
+mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.5.2 (GCC)
And yes, I have
C:\MinGW\include\dirent.h
C:\MinGW\share\libtool\libltdl\lt__dirent.c
C:\MinGW\share\libtool\libltdl\libltdl\lt__dirent.h
I also get a bunch of these warnings
warning: incompatible implicit declaration of built-in function 'alloc
+a'
which seems to be related to
Richard Henderson - Re: Fix implicit declaration warnings for alloca in target files
On Thu, Sep 16, 2004 at 08:55:50AM -0400, Kaveh R. Ghazi wrote:
> +/* GCC always provides __builtin_alloca(x). */
> +#ifndef alloca
> +#define alloca(x) __builtin_alloca(x)
> +#endif
Should be #undef, not #ifndef.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.