[Gauche-devel-jp] Re: gosh の開発で行き詰まった

Back to archive index

shelarcy shela****@capel*****
2004年 7月 11日 (日) 21:40:40 JST


On Sun, 11 Jul 2004 20:24:30 +0900, shelarcy 
<shela****@capel*****> wrote:
> gcc.link.dll ext\uvector\bin\gcc\release\uvector.dll
> Info: resolving _Scm_SequenceClass by linking to __imp__Scm_SequenceClass
> (auto-import)
> Info: resolving _Scm_CollectionClass by linking to
> __imp__Scm_CollectionClass (auto-import)
> Info: resolving _Scm_TopClass by linking to __imp__Scm_TopClass
> (auto-import)
> Info: resolving _Scm_ClassClass by linking to __imp__Scm_ClassClass
> (auto-import)
> Info: resolving _Scm_IntegerClass by linking to __imp__Scm_IntegerClass
> (auto-import)
> Info: resolving _Scm_RealClass by linking to __imp__Scm_RealClass
> (auto-import)
> Info: resolving _Scm_PairClass by linking to __imp__Scm_PairClass
> (auto-import)
> Info: resolving _Scm_VectorClass by linking to __imp__Scm_VectorClass
> (auto-import)
> Info: resolving _Scm_StringClass by linking to __imp__Scm_StringClass
> (auto-import)
> Info: resolving _Scm_ProcedureClass by linking to
> __imp__Scm_ProcedureClass (auto-import)
> Info: resolving _Scm_PortClass by linking to __imp__Scm_PortClass
> (auto-import)
> ext\uvector\bin\gcc\release\uvinit.o(.text+0x283):uvinit.c: undefined
> reference to `Scm_ReadUvectorHook'
>
> resolving は大丈夫ですよね。
> すると残ったエラーは Scm_ReadUvectorHook だけですか。
> cygwin では問題ないのにどこで問題が出てるんだろう?

Scm_ReadUvectorHook って宣言があるだけで、定義があるように見えないのですが
……

とりあえずこの問題はほっといて別のライブラリのコンパイルに向かったのです
が、

--- C:\develop\Gauche-0.8\src\load.c.1~	Tue Jul 06 14:50:04 2004
+++ load.c	Sun Jul 11 21:14:33 2004
@@ -520,6 +520,8 @@
     not much point to avoid dlopen here. */
  #if defined(HAVE_DLOPEN)
  #include "dl_dlopen.c"
+#elif defined(WIN32_NATIVE)
+#include "dl_win.c"
  #else
  #include "dl_dummy.c"
  #endif

でないと MinGW 上で DLL を load できませんよね。
で、コンパイルしてみたところ dl_error のところでエラーがでるので、今のと
ころ dummy 関数にしています。

gcc.compile.c gauche\bin\gcc\release\load.o
In file included from ../src/load.c:524:
../src/dl_win.c: In function `dl_error':
../src/dl_win.c:52: parse error before "void"
../src/dl_win.c:53: warning: int format, DWORD arg (arg 3)
../src/dl_win.c:54: parse error before "char"
../src/load.c: In function `Scm_LoadAutoload':
../src/load.c:952: warning: statement with no effect
../src/load.c:960: warning: statement with no effect
../src/load.c:1000: warning: statement with no effect
../src/load.c:1006: warning: statement with no effect


-- 
shelarcy <shela****@capel*****>
http://page.freett.com/shelarcy/



Gauche-devel-jp メーリングリストの案内
Back to archive index