dllのリンク
次のエラーが出るとき
/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld: warning: auto-importing has been activated without --enable-auto-import specified on the command line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
ldに
--enable-auto-import
をつけるのだけどgccからldにオプションわたすには
-Wl,--enable-auto-import
とする。
"-Wl"を知らなかったので頓挫していた。
--enable-auto-import
無しでビルドすると実行時に落ちる。