http://www2.atwiki.jp/ccw/pages/5.html
こちらのページを参照して、MinGW5.1.0.exeとMSYS-1.0.10.exeを
インストールし、パスの設定をしました。

gccでコンパイルをしようとすると、以下のメッセージが出るのですが
どのように対処すればいいのでしょうか?
(MINGW32でもコマンドプロンプトでも同じメッセージです)

$ gcc filename.c
Info: resolving __fmode by linking to __imp___fmode (auto-import)
Info: resolving __fpreset by linking to __imp___fpreset (auto-import)
/mingw/lib/crt2.o(.text+0x16a):crt1.c: undefined reference to `__cpu_features_init'
/mingw/lib/crt2.o(.text+0x21e):crt1.c: undefined reference to `_pei386_runtime_relocator'
fu000001.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000002.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000004.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000005.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
nmth000000.o(.idata$4+0x0): undefined reference to `_nm___fmode'
nmth000003.o(.idata$4+0x0): undefined reference to `_nm___fpreset'
collect2: ld returned 1 exit status