Browse thread
[Caml-list] Problem with linking threaded program
-
Galchin Vasili
- ChoJin
- Kamil Shakirov
[
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: | Kamil Shakirov <kamils@i...> |
| Subject: | Re: [Caml-list] Problem with linking threaded program |
hello,
Galchin Vasili <vngalchin@yahoo.com> writes:
> When I try to compile/link a simple thread program I get:
>
> [vigalchin@localhost OCAMLJUNK]$ ocamlc -thread
> -custom threads.cma thread.ml -cclib -lthreads
> Error while linking
> /usr/lib/ocaml/threads/threads.cma(Thread):
> Reference to undefined global `Unix'
>
>
> Can anybody help?
You forgot to point Unix library.
ocamlc -thread -custom threads.cma unix.cma thread.ml
^^^^^^^^
Read the OCaml's documentaton and the user's manual. ;)
--
kamil
-------------------
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