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: | 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 THREADS = yes or you can add unix.cma before threads.cma in your compile line and it should work. -- Best Regards ChoJin ------------------- 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