Japanese Simutrans Forum

日本語simutransフォーラム => バグレポート => トピック開設者: z9999+ さんの発言 2011/12/01 22:53

トピック名: 最新版のMinGWでコンパイルに失敗する
投稿者: z9999+ さんの発言 2011/12/01 22:53
最新版のMinGW (GCC 4.6.1)では、"-mno-cygwin"フラグを使用するとエラーになり、コンパイルに失敗する。
Makefileを修正して、"-mno-cygwin"フラグを取り除くとコンパイル可能。


This was reported in a japanese community.

Latest MinGW (GCC 4.6.1) doesn't recognize "-mno-cygwin" flag anymore, it will cause compiling error.

引用
cc1: error: unrecognized command line option "-mno-cygwin"

Easy workaround is to remove "-mno-cygwin" flag from Makefile.
But it might cause problem for the people who use older cygwin.
Three of Makefile - simutrans, makeobj, nettools - contain this flag.
トピック名: Re:最新版のMinGWでコンパイルに失敗する
投稿者: prissi さんの発言 2011/12/03 06:59
How does this work, when cygwin and mingw are installed on the same computer? And the last release is 4.4.0 for mingw. I consider changing this but given the problems with bleeting edge gcc 4.x.x we had in the past I might waiting a little time to see what the mingw team does next.

(And why they do not just ignore this flag is beyond my knowledge, sigh.)
トピック名: Re:最新版のMinGWでコンパイルに失敗する
投稿者: z9999+ さんの発言 2011/12/03 22:25
I have no idea, sorry.
トピック名: Re:最新版のMinGWでコンパイルに失敗する
投稿者: prissi さんの発言 2011/12/12 06:47
Anyway, I followed your suggestion, as the cygwin mingw is seriously broken anyway, when I tried.