Forums: ・フォーラム (Thread #37515)

MARS C/C++版の mingw32-make.exe では *.c が g++ でコンパイルされてしまいます 修正版の収納を希望 (2016-02-18 20:36 by Some one #77681)

非常に役に立つパッケージの配布・保守 いつもありがとうございます。

ところで、Pleiades MARS C/C++版に同梱の mingw/bin/mingw32-make.exe は問題があり *.c ファイルを g++ でコンパイルしてしまいます。
この不具合により、たとえば lua などは付属のMakefileではコンパイルできません。

Windows環境ではファイル名の大文字小文字が区別できなくて、*.c を *.C で読み取り C++ のルールが優先されるためです。

この不具合は Gnu Make の不具合として昨年暮れあたりに修正されたようでして
mingw64の最新版(GNU Make 4.1.90)では修正されたことを確認しております。

(参考資料)
http://stackoverflow.com/questions/28531272/ming32-make-is-using-g-instead-of-cc-or-gcc-to-compile-a-c-source-file

つきましては、MARS C/C++ 版付属の mingw も修正版を収録していただきたく対応につきご検討ください。

****
ついでながら、CDTで ”プロジェクトをクリーン” すると rm が収録されていないので、クリーンアップが正しく行われません。
自前で作成したrmもどきでどうにか凌いでおりますが、こちらも何らかの対応があると嬉しいなぁ・・・

Reply to #77681×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: MARS C/C++版の mingw32-make.exe では *.c が g++ でコンパイルされてしまいます 修正版の収納を希望 (2016-02-18 23:30 by cypher256 #77682)

今月末に MARS SR2 がリリースされるため、それに合わせて
mingw をバージョンアップするようにします。
また、rm の件もできれば対応しようと思います。
Reply to #77681

Reply to #77682×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login