[Shootout-list] message for OCaml

William Douglas Neumann wdnx@unm.edu
Fri, 17 Dec 2004 07:45:39 -0700 (MST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--411118601-1280332978-1103294739=:2827
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Thu, 16 Dec 2004, Brent Fulgham wrote:

> On Wednesday 15 December 2004 08:00 am, William Douglas Neumann wrote:
>> type thCtx =3D
>> =A0 =A0{ mutable message : int;
>
> What modules does this need to build?  It fails with:
>
> cp /opt/shootout/shootout/bench/message/message.ocaml message.ml
> /usr/bin/ocamlopt -noassert -unsafe -I /usr/lib/ocaml/contrib -ccopt -O3
> message.ml -o message.ocaml_run
> File "message.ml", line 9, characters 9-16:
> Unbound type constructor Mutex.t
> make[1]: *** [message.ocaml_run] Error 2
> rm message.ml

Oooops... I forgot to include that information.  It needs the threads and=
=20
unix libraries.  The complete compilation command is

/usr/bin/ocamlopt -noassert -unsafe -I /usr/lib/ocaml/contrib -ccopt -O3=20
-I + threads unix.cmxa threads.cmxa message.ml -o message.ocaml_run

William D. Neumann
<wdnx@unm.edu>

FWO to the Nth degree!!!
---
Dear Lord, please make me the kind of person
my dog thinks I am.
--411118601-1280332978-1103294739=:2827--