[plt-scheme] Win32 extensions without VC++ 6?

From: Mark Brady (kalath at lycos.com)
Date: Fri Nov 8 06:33:02 EST 2002

Hello I am having problems building win32 extensions with the borland, mingw32 and cygwin compilers. I am just trying to build some of the examples (eg. fmod-ez.ss). No matter the combination of compiler or flags I keep getting the same error (posted at the end of this message). It seems to be the same problem someone else had with trying to use VC++ 5. Do I really need VC++ 6 to build extensions? Any help would be great, here is the error I'm getting :

E:\mby\numenor\x\1\examples>"d:\Program Files\PLT\mzc.exe" -v --extension fmod-ez.ss
MzScheme compiler (mzc) version 202, Copyright (c) 1996-2002 PLT
"fmod-ez.ss":
 Reading...  expanding...
      [cpu: 10ms, real: 10ms, gc: 0ms]
 pre-processing and scanning for errors
      [cpu: 0ms, real: 0ms, gc: 0ms]
 transforming to a-normal form
      [cpu: 0ms, real: 0ms, gc: 0ms]
 determining known bindings
      [cpu: 0ms, real: 0ms, gc: 0ms]
 transforming to b-normal form, analyzing, and inlining
      [cpu: 0ms, real: 0ms, gc: 0ms]
 finding static procedures
      [cpu: 0ms, real: 0ms, gc: 0ms]
 closure conversion and explicit control transformation
      [cpu: 0ms, real: 0ms, gc: 0ms]
 closure->vehicle mapping
      [cpu: 0ms, real: 0ms, gc: 0ms]
 choosing data representations
      [cpu: 0ms, real: 0ms, gc: 0ms]
 transforming to Virtual Machine form
      [cpu: 0ms, real: 0ms, gc: 0ms]
 optimizing Virtual Machine code
      [cpu: 0ms, real: 0ms, gc: 0ms]
 [emitting ANSI C to "C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.c"]
      [cpu: 10ms, real: 10ms, gc: 0ms]
 [compiling native code to "C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj"]
compile-extension: (d:\mingw32\bin\gcc.exe -c -O2 -ID:\PROGRA~1\PLT\collects\compiler -ID:\PROGRA~1\PLT\collects\..\incl
ude C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.c -o C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj)
      [cpu: 141ms, real: 140ms, gc: 0ms]
 [linking to ".\fmod-ez.dll"]
link-extension: (d:\mingw32\bin\ld.exe --dll C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj D:\PROGRA~1\PLT\co
llects\..\lib\gcc\mzdyn.exp D:\PROGRA~1\PLT\collects\..\lib\gcc\mzdyn.o D:\PROGRA~1\PLT\collects\..\lib\gcc\init.o D:\PR
OGRA~1\PLT\collects\..\lib\gcc\fixup.o --base-file C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\tmp18.base -e _dll_entry at 12 -o
 .\fmod-ez.dll)
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x3b)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod-
ez.c: undefined reference to `scheme_real_to_double'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x6e)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod-
ez.c: undefined reference to `scheme_real_to_double'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x8a)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod-
ez.c: undefined reference to `scheme_wrong_type'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0xa1)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod-
ez.c: undefined reference to `fmod'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0xaf)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod-
ez.c: undefined reference to `scheme_make_double'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x100)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `scheme_intern_exact_symbol'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x135)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `scheme_register_extension_global'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x144)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `scheme_register_extension_global'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x169)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `scheme_make_prim_w_arity'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x18b)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `scheme_current_thread'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x19f)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `scheme_global_bucket'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x1b2)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `scheme_set_global_bucket'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x1b7)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `scheme_void'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x1d0)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `GC_malloc'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x1f4)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `scheme_set_tail_buffer_size'
C:\DOCUME~1\MBRADY~1.IE-\LOCALS~1\Temp\mzcTMPfmod-ez.obj(.text+0x24c)://C/DOCUME~1/MBRADY~1.IE-/LOCALS~1/Temp/mzcTMPfmod
-ez.c: undefined reference to `scheme_false'
 [?,?]: Error:  linker did not link successfully
link-extension: command failed
Errors encountered.  Compilation aborted.

Mark.   


__________________________________________________________
Outgrown your current e-mail service? Get 25MB Storage, POP3 Access,
Advanced Spam protection with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus


Posted on the users mailing list.