[plt-scheme] Building exe with MinGW

From: Vladimir Konrad (vk at dsl.pipex.com)
Date: Fri Feb 27 04:39:00 EST 2004

Hello!

I am trying to build a simple .exe file from .scm file using mzc on
WindowsXP. I am using the current version of MinGW.

The command I run is: W:\app\plt\mzc factorial.scm --exe --tool gcc -v

The build process fails with following output:

MzScheme compiler (mzc) version 206p1, Copyright (c) 2004 PLT Scheme, Inc.
"factorial.scm":
 [?,?]: Error:  linker did not link successfully
link-extension:
Info: resolving _scheme_null by linking to __imp__scheme_null (auto-import)
Info: resolving _scheme_false by linking to __imp__scheme_false
(auto-import)
Info: resolving _scheme_current_thread by linking to
__imp__scheme_current_thread (auto-import)
C:\DOCUME~1\vladimir\LOCALS~1\Temp\mzcTMPfactorial.obj(.text+0x54f):mzcTMPfa
ctorial.c: undefined reference to `_scheme_apply_known_closed_prim_multi'
fu000001.o(.idata$3+0xc): undefined reference to `libmzsch206p1_0_lib_iname'
fu000002.o(.idata$3+0xc): undefined reference to `libmzsch206p1_0_lib_iname'
fu000003.o(.idata$3+0xc): undefined reference to `libmzsch206p1_0_lib_iname'
fu000004.o(.idata$3+0xc): undefined reference to `libmzsch206p1_0_lib_iname'
fu000005.o(.idata$3+0xc): undefined reference to `libmzsch206p1_0_lib_iname'
fu000007.o(.idata$3+0xc): more undefined references to
`libmzsch206p1_0_lib_iname' follow
nmth000000.o(.idata$4+0x0): undefined reference to `_nm__scheme_null'
nmth000006.o(.idata$4+0x0): undefined reference to `_nm__scheme_false'
nmth000011.o(.idata$4+0x0): undefined reference to
`_nm__scheme_current_thread'

What is going on and how it can be fixed?



Posted on the users mailing list.