caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* how do you compile
@ 2008-08-06 14:38 Ben Aurel
  2008-08-06 14:39 ` Ben Aurel
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Aurel @ 2008-08-06 14:38 UTC (permalink / raw)
  To: caml-list

hi

If you have a simple source code like

 lazy_lists.ml

what is the best way to compile that in your opinion? I though it
would be usefull to have anything but the .ml source code in a bin
directory. What do you think of that?

If I try that with

"ocamlc -o bin/lazy_lists lazy_lists.ml"

then, the 'files lazy_lists.cmi' and  'lazy_lists.cmo' are not in the
/bin directory.

ben


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how do you compile
  2008-08-06 14:38 how do you compile Ben Aurel
@ 2008-08-06 14:39 ` Ben Aurel
  2008-08-06 14:46   ` [Caml-list] " Ashish Agarwal
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Aurel @ 2008-08-06 14:39 UTC (permalink / raw)
  To: caml-list

> then, the 'files lazy_lists.cmi' and  'lazy_lists.cmo' are not in the
> /bin directory.

which is bad

On Wed, Aug 6, 2008 at 10:38 AM, Ben Aurel <ben.aurel@gmail.com> wrote:
> hi
>
> If you have a simple source code like
>
>  lazy_lists.ml
>
> what is the best way to compile that in your opinion? I though it
> would be usefull to have anything but the .ml source code in a bin
> directory. What do you think of that?
>
> If I try that with
>
> "ocamlc -o bin/lazy_lists lazy_lists.ml"
>
> then, the 'files lazy_lists.cmi' and  'lazy_lists.cmo' are not in the
> /bin directory.
>
> ben
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Re: how do you compile
  2008-08-06 14:39 ` Ben Aurel
@ 2008-08-06 14:46   ` Ashish Agarwal
  0 siblings, 0 replies; 3+ messages in thread
From: Ashish Agarwal @ 2008-08-06 14:46 UTC (permalink / raw)
  To: Ben Aurel; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

Use ocamlbuild. You can simply type "ocamlbuild lazy_lists.native"
or "ocamlbuild lazy_lists.byte" to produce native or byte code respectively.
All compiled files get put in a separate directory called _build.

On Wed, Aug 6, 2008 at 10:39 AM, Ben Aurel <ben.aurel@gmail.com> wrote:

> > then, the 'files lazy_lists.cmi' and  'lazy_lists.cmo' are not in the
> > /bin directory.
>
> which is bad
>
> On Wed, Aug 6, 2008 at 10:38 AM, Ben Aurel <ben.aurel@gmail.com> wrote:
> > hi
> >
> > If you have a simple source code like
> >
> >  lazy_lists.ml
> >
> > what is the best way to compile that in your opinion? I though it
> > would be usefull to have anything but the .ml source code in a bin
> > directory. What do you think of that?
> >
> > If I try that with
> >
> > "ocamlc -o bin/lazy_lists lazy_lists.ml"
> >
> > then, the 'files lazy_lists.cmi' and  'lazy_lists.cmo' are not in the
> > /bin directory.
> >
> > ben
> >
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

[-- Attachment #2: Type: text/html, Size: 2238 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-06 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-06 14:38 how do you compile Ben Aurel
2008-08-06 14:39 ` Ben Aurel
2008-08-06 14:46   ` [Caml-list] " Ashish Agarwal

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).