Subject: Re: winSIOD installation problems
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1998/10/04
Newsgroups: comp.lang.scheme
Message-ID: <6v7eq3$1vlcf@fido.engr.sgi.com>
Rafael <rhumpertSPAMaway@iname.com> wrote:
+---------------
|         siod -v01,-m2 hello.scm
| I get an
|         ERROR: unbound variable (errobj main)
| whereas SIOD is supposed to output "Hello Scheme World".
+---------------

You don't show the contents of "hello.scm", but based on the error message
I would guess that your program doesn't contain a definition for a procedure
named "main" (required by the -mN option for N > 0).

The following example uses the Unix version of SIOD, but winSIOD should
work the same (I think)...

	% cat foo.scm
	(print "hello, world!")
	%  siod -v01,-m2 foo
	"hello, world!"
	ERROR: unbound variable (errobj main)
	% 

Same problem you had, right?

	% cat foo2.scm
	(define (main)
	  (print "hello, world!"))
	% siod -v01,-m2 foo
	"hello, world!"
	% 

Works better that way.


-Rob

[p.s. Apologies in advance: Email'd replies may get
a "vacation" bounce message while I'm on sabbatical...]

-----
Rob Warnock, 8L-855		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
2011 N. Shoreline Blvd.		FAX: 650-964-0811
Mountain View, CA  94043	PP-ASEL-IA