Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1406 gcc 4.2 failure with -Werror=missing-prototypes

WSL
closed
None
works-for-me
No_User_Response
2013-01-31
2010-03-11
Ramiro Polla
No

$ echo "#include <stdio.h>" > test.c
$ i686-mingw32-gcc-4.2 -o test.o -c test.c -Werror=missing-prototypes
In file included from test.c:1:
/usr/lib/gcc/i686-mingw32/4.2.4/../../../../i686-mingw32/include/stdio.h:372: error: no previous prototype for 'getc'
/usr/lib/gcc/i686-mingw32/4.2.4/../../../../i686-mingw32/include/stdio.h:379: error: no previous prototype for 'putc'
/usr/lib/gcc/i686-mingw32/4.2.4/../../../../i686-mingw32/include/stdio.h:386: error: no previous prototype for 'getchar'
/usr/lib/gcc/i686-mingw32/4.2.4/../../../../i686-mingw32/include/stdio.h:393: error: no previous prototype for 'putchar'
In file included from test.c:1:
/usr/lib/gcc/i686-mingw32/4.2.4/../../../../i686-mingw32/include/stdio.h:535: error: no previous prototype for 'fopen64'
/usr/lib/gcc/i686-mingw32/4.2.4/../../../../i686-mingw32/include/stdio.h:547: error: no previous prototype for 'ftello64'

Discussion

  • Works as expected with gcc 4.5.2.

     
    • assigned_to: nobody --> ir0nh34d
    • status: open --> closed-works-for-me
     
  • Earnie Boyd
    Earnie Boyd
    2013-01-31

    • labels: mingw runtime (deprecated use WSL) -->
    • status: closed-works-for-me --> closed
    • resolution: --> works-for-me
    • category: --> No_User_Response
    • milestone: --> WSL