Hello dear MLers...
I have a file called "hw.sml"
structure Main=
struct
fun main(arg0, argv) =
(
print "hello world\n";
OS.Process.success
)
val _ = SMLofNJ.ex****tFn("hw", main)
end
"hw.cm" is simply:
group is
hw.sml
Standard ML of New Jersey v110.60 [built: Sun Nov 12 17:21:48 2006]
- CM.make "/Users/jt/hw.cm";
[autoloading]
[library $smlnj/cm/cm.cm is stable]
[library $smlnj/internal/cm-sig-lib.cm is stable]
[library $/pgraph.cm is stable]
[library $smlnj/internal/srcpath-lib.cm is stable]
[library $SMLNJ-BASIS/basis.cm is stable]
[autoloading done]
[scanning /Users/jt/hw.cm]
[compiling /Users/jt/(hw.cm):hw.sml]
hw.sml:7.6-7.24 Error: unbound structure: OS in path OS.Process.success
hw.sml:10.9-10.25 Error: unbound structure: SMLofNJ in path
SMLofNJ.ex****tFn
val it = false : bool
I am using Mac OS X. The SML/NL is installed in /Applications.
Does this have anything to do with it? What's wrong here?
JT.