Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ml > Simple compilat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 918 of 973
Post > Topic >>

Simple compilation example from ****pman's Unix System Programming

by JT <jt@[EMAIL PROTECTED] > Aug 20, 2007 at 12:50 PM

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.
 




 2 Posts in Topic:
Simple compilation example from Shipman's Unix System Programmin
JT <jt@[EMAIL PROTECTE  2007-08-20 12:50:16 
Re: Simple compilation example from Shipman's Unix System Progra
QuanTa <quancta@[EMAIL  2007-08-30 15:12:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 20:07:19 CDT 2008.