gcc 4.3.2 --enable-auto-import
gcc 4.3.2 にアップデートしたら?なぜかリンクできなくなって、リンク時に以下のような警告が出てきた。
Info: resolving std::cerr by linking to __imp___ZSt4cerr (auto-import) Info: resolving typeinfo for std::logic_error by linking to __imp___ZTISt11logic _error (auto-import) /usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld: warning: au to-importing has been activated without --enable-auto-import specified on the co mmand line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
解決策は、オプション -WL,--enable-auto-import を明示すること…なのですが、どうしてこうなってしまったんだろう…
参考:
追記: typeinfo を使っているからか…?