Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: ChoJin <chojin@l...>
Subject: Re: [Caml-list] Problem with linking threaded program
Galchin Vasili <> writes:

> Hello,
>    When I try to compile/link a simple thread program
> I get:
> [vigalchin@localhost OCAMLJUNK]$ ocamlc -thread
> -custom threads.cma -cclib -lthreads
> Error while linking
> /usr/lib/ocaml/threads/threads.cma(Thread):
> Reference to undefined global `Unix'

Either you can use OCamlMakefile and just define


you can add unix.cma before threads.cma in your compile line and it
should work.

Best Regards

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: