[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jacques Garrigue <garrigue@k...> |
| Subject: | Re: [Caml-list] toplevel with threads |
From: Steve Elkins <sgelkins@bellsouth.net>
> Will someone please explain what I'm doing wrong, or tell me my build
> is broken, or enlighten me somehow. I'm having trouble using threads
> in toplevels, but not when I compile to bytecode.
>
> sge:346$ ocamlmktop -custom -o strocaml str.cma
Which architecture (OS) are you working with?
Since ocaml 3.04, you don't need to build custom toplevels on
architectures where dynamic loading is supported.
$ ocaml
Objective Caml version 3.04
# #load"str.cma";;
# Str.regexp;;
- : string -> Str.regexp = <fun>
This also works for threads, but not always:
$ ocaml -I +threads
Objective Caml version 3.04
# #load"unix.cma";;
# #load"threads.cma";;
> sge:350$ ./throcaml
> Objective Caml version 3.04
>
> # Thread.create;;
> Unbound value Thread.create
You need to add the +threads directory to your load path:
$ ./throcaml -I +threads
Cheers,
Jacques Garrigue
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners