From: "H.Yamamoto" Date: 2004-08-16T02:02:10+09:00 Subject: [ruby-dev:24081] to compile tcltklib (bcc32) 山本です。 Ruby/Tk を使ってみようと思って bcc32 でビルドしたところ、 Index: tcltklib.c =================================================================== RCS file: /var/cvs/src/ruby/ext/tcltklib/tcltklib.c,v retrieving revision 1.49.2.7 diff -u -w -b -r1.49.2.7 tcltklib.c --- tcltklib.c 30 Jul 2004 07:13:13 -0000 1.49.2.7 +++ tcltklib.c 15 Aug 2004 15:55:25 -0000 @@ -97,7 +97,7 @@ /* from tkAppInit.c */ -#if !defined __MINGW32__ +#if 0 // !defined __MINGW32__ /* * The following variable is a special hack that is needed in order for * Sun shared libraries to be used for Tcl. としないと _matherr が未定義というエラーが出てビルドできませんでした。 Windows では、_matherr が unix と互換性の無い int _matherr(struct _exception *e) という形式になっていて、extern int matherr(); ではないので、未定義エラーに なったのだと思います。 extern int matherr(); int *tclDummyMathPtr = (int *) matherr; の処理の意味がわからなかったので、修正はできませんでした。