English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2004-02-21 (21:24)
From: ChoJin <chojin@l...>
Subject: Re: [Caml-list] Problem with linking threaded program
Galchin Vasili <vngalchin@yahoo.com> writes:

> Hello,
>    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'

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 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