Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Problem with linking threaded program
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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