Hi, Chris!
The compiler expects a file containing one single expression as input, which is
usually a _functor_. Take a look at
http://www.mozart-oz.org/documentation/apptut/index.html.
When you use the interactive top-level, there is a variable environment that is
not totally available during compilation. In functors, you'll make the referred
tools avaliable by importing modules. Your hello word should look like this:
functor
import
System(print:Print)
Application
define
{Print 'hello world'}
{Application.exit 0}
end
Cheers,
Jorge.
Selon Chris Rathman <[EMAIL PROTECTED]>:
> Sorry if I'm asking a rather obvious noob question but when I call
> ozc.exe from the command shell in WinXP - for a text file with the
> following:
>
> {Print "hello world"}
>
> I get the compiler complaining:
>
> %** variable Print not introduced
>
> I figure it's probably just a matter of setting a windows environment
> variable (probably OZPATH), but a quick search doesn't yield what the
> value should point to. (My installation just uses the default location
> of "c:\program files\Mozart").
>
> Thanks,
> Chris Rathman
>
>
>
>
_________________________________________________________________________________
> mozart-users mailing list
> [email protected]
> http://www.mozart-oz.org/mailman/listinfo/mozart-users
>
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users