caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: ChoJin <chojin@lrde.epita.fr>
To: Galchin Vasili <vngalchin@yahoo.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Problem with linking threaded program
Date: Sat, 21 Feb 2004 22:24:59 +0100	[thread overview]
Message-ID: <mvohdxkxh04.fsf@sandrock.lrde.epita.fr> (raw)
In-Reply-To: <20040221210246.90642.qmail@web12207.mail.yahoo.com> (Galchin Vasili's message of "Sat, 21 Feb 2004 13:02:46 -0800 (PST)")

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


  reply	other threads:[~2004-02-21 21:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-21 21:02 Galchin Vasili
2004-02-21 21:24 ` ChoJin [this message]
2004-02-21 22:36 ` Kamil Shakirov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvohdxkxh04.fsf@sandrock.lrde.epita.fr \
    --to=chojin@lrde.epita.fr \
    --cc=caml-list@inria.fr \
    --cc=vngalchin@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).