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
Compiling native threads in ocaml 1.06
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: William Chesters <williamc@d...>
Subject: Compiling native threads in ocaml 1.06
This was the first thing I did :), before I downloaded the docs, so I
didn't realise there was a problem ... this works for me, on RedHat
Linux 4.2 with Xavier's Linuxthreads 0.5:

J'ai réussi (avant de lire les informations---donc, je n'ai pas su que
il y aurait une problème ...) avec les commandes suivantes:

ocamlopt.opt -output-obj \
  -I /usr/local/packages/dist/ocaml-1.06/otherlibs/systhreads \

gcc -o threadtest camlprog.o \
  -L /usr/local/packages/dist/ocaml-1.06/otherlibs/systhreads -lthreadsnat \
  -L /usr/local/packages/inst/ocaml-1.06/lib -lunix -lasmrun \
  -lpthread -lm