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
convenient features
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David.Mentre@i...
Subject: Re: convenient features
David Chemouil <> writes:

> 1. One thing that really bothers me is the obligation to put object
> files in the good order, when linking them.

ocamldep is your friend (included in the standard distribution). Have a
look at the following makefile to see how to use it:

Otherwise, there is also OCaml Make from Markus (i've never used it):

> 2. [...] So it must be possible to remove the '-thread' option, and
> have the compiler guess that the program is multithreaded when it sees
> '[x]a' on the command line.

I think this option is due to separate compilation. You may compile a
file in reentrant mode (aka multi-threaded) without doing the link phase
(with the[x]a library).

Best regards,
-- --
 Opinions expressed here are only mine.