ホームページの「GNU Pascal コンパイラの設定」ページを大幅に修正しました。

最新版のMinGWをインストール(またはアップグレード)すると、GNU Pascal (gpc) で以下のようなリンクエラーが発生します。

/mingw/lib/crt2.o:crt1.c:(.text+0x1f1): undefined reference to __chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):glob.c:(.text+0x5e3): undefined reference to
__chkstk_ms’
/mingw/lib/libmingwex.a(glob.o):glob.c:(.text+0x690): undefined reference to __chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):glob.c:(.text+0x7e9): undefined reference to
__chkstk_ms’
/mingw/lib/libmingwex.a(glob.o):glob.c:(.text+0x82d): undefined reference to __chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):glob.c:(.text+0xc0d): more undefined references to
__chkstk_ms’ follow
collect2: ld returned 1 exit status

「_chkstk」が「__chkstk_ms」に変更になったのが要因だと思います。
そのため、「Pascal 日和 ホームページ」の「GNU Pascal コンパイラの設定」ページを大幅に修正しました。
ページ自体も「MinGWの設定(GNU Pascal用)」と「GNU Pascal コンパイラの設定(MinGW版)」に分けました。MinGWとGNU Pascalコンパイラは「C:\GPC」にマージしました。
問題が発生した方は、新しい設定を試みてください。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください