caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlmktop 3.10 fails to link cmo files?
@ 2007-09-21 14:31 Massimiliano Brocchini
  2007-09-21 15:18 ` [Caml-list] " Julien Moutinho
  0 siblings, 1 reply; 5+ messages in thread
From: Massimiliano Brocchini @ 2007-09-21 14:31 UTC (permalink / raw)
  To: Caml mailing list

Hi all,

I tried to make a custom top level using ocamlmktop (ocaml 3.10). I
tried several approaches but I wasn't able to correctly link cmo files
not belonging to the standard library.

e.g. ocamlmktop -I /home/massimiliano/ocaml_code/sequence/
sequence.cmo -o mytop
gives no error and build mytop
but in mytop open Sequence fails reporting an unbound module

while

ocaml -I /home/massimiliano/ocaml_code/sequence/  sequence.cmo
works as expected and allows me to open the module.

Am I doing something wrong or is it a bug?

Ciao, Massimiliano Brocchini


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

* Re: [Caml-list] ocamlmktop 3.10 fails to link cmo files?
  2007-09-21 14:31 ocamlmktop 3.10 fails to link cmo files? Massimiliano Brocchini
@ 2007-09-21 15:18 ` Julien Moutinho
  2007-09-21 15:37   ` Massimiliano Brocchini
  2007-09-21 15:38   ` Massimiliano Brocchini
  0 siblings, 2 replies; 5+ messages in thread
From: Julien Moutinho @ 2007-09-21 15:18 UTC (permalink / raw)
  To: caml-list

On Fri, Sep 21, 2007 at 04:31:54PM +0200, Massimiliano Brocchini wrote:
> [...]
> e.g. ocamlmktop -I /home/massimiliano/ocaml_code/sequence/
> sequence.cmo -o mytop
> gives no error and build mytop
> but in mytop open Sequence fails reporting an unbound module
> 
> while
> 
> ocaml -I /home/massimiliano/ocaml_code/sequence/  sequence.cmo
> works as expected and allows me to open the module.
> 
> Am I doing something wrong or is it a bug?
Try this:
	% mytop -I /home/massimiliano/ocaml_code/sequence/
or this:
	% cd /home/massimiliano/ocaml_code/sequence/
	% ./mytop
So mytop will know where to find the .cmi.


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

* Re: [Caml-list] ocamlmktop 3.10 fails to link cmo files?
  2007-09-21 15:18 ` [Caml-list] " Julien Moutinho
@ 2007-09-21 15:37   ` Massimiliano Brocchini
  2007-09-21 15:38   ` Massimiliano Brocchini
  1 sibling, 0 replies; 5+ messages in thread
From: Massimiliano Brocchini @ 2007-09-21 15:37 UTC (permalink / raw)
  To: caml-list

Thanks for your reply.

This works....
but doesn't the need to specify the include path reduce the usefulness
of building a custom top level?


On 9/21/07, Julien Moutinho <julien.moutinho@gmail.com> wrote:
> On Fri, Sep 21, 2007 at 04:31:54PM +0200, Massimiliano Brocchini wrote:
> > [...]
> > e.g. ocamlmktop -I /home/massimiliano/ocaml_code/sequence/
> > sequence.cmo -o mytop
> > gives no error and build mytop
> > but in mytop open Sequence fails reporting an unbound module
> >
> > while
> >
> > ocaml -I /home/massimiliano/ocaml_code/sequence/  sequence.cmo
> > works as expected and allows me to open the module.
> >
> > Am I doing something wrong or is it a bug?
> Try this:
>         % mytop -I /home/massimiliano/ocaml_code/sequence/
> or this:
>         % cd /home/massimiliano/ocaml_code/sequence/
>         % ./mytop
> So mytop will know where to find the .cmi.
>
> _______________________________________________
> 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
>


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

* Re: [Caml-list] ocamlmktop 3.10 fails to link cmo files?
  2007-09-21 15:18 ` [Caml-list] " Julien Moutinho
  2007-09-21 15:37   ` Massimiliano Brocchini
@ 2007-09-21 15:38   ` Massimiliano Brocchini
  2007-09-21 15:56     ` Julien Moutinho
  1 sibling, 1 reply; 5+ messages in thread
From: Massimiliano Brocchini @ 2007-09-21 15:38 UTC (permalink / raw)
  To: caml-list

Thanks for your reply.

This works....
but doesn't the need to specify the include path reduce the usefulness
of building a custom top level?

On 9/21/07, Julien Moutinho <julien.moutinho@gmail.com> wrote:
> On Fri, Sep 21, 2007 at 04:31:54PM +0200, Massimiliano Brocchini wrote:
> > [...]
> > e.g. ocamlmktop -I /home/massimiliano/ocaml_code/sequence/
> > sequence.cmo -o mytop
> > gives no error and build mytop
> > but in mytop open Sequence fails reporting an unbound module
> >
> > while
> >
> > ocaml -I /home/massimiliano/ocaml_code/sequence/  sequence.cmo
> > works as expected and allows me to open the module.
> >
> > Am I doing something wrong or is it a bug?
> Try this:
>         % mytop -I /home/massimiliano/ocaml_code/sequence/
> or this:
>         % cd /home/massimiliano/ocaml_code/sequence/
>         % ./mytop
> So mytop will know where to find the .cmi.
>
> _______________________________________________
> 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
>


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

* Re: [Caml-list] ocamlmktop 3.10 fails to link cmo files?
  2007-09-21 15:38   ` Massimiliano Brocchini
@ 2007-09-21 15:56     ` Julien Moutinho
  0 siblings, 0 replies; 5+ messages in thread
From: Julien Moutinho @ 2007-09-21 15:56 UTC (permalink / raw)
  To: caml-list

On Fri, Sep 21, 2007 at 05:38:53PM +0200, Massimiliano Brocchini wrote:
> but doesn't the need to specify the include path reduce the usefulness
> of building a custom top level?
You could wrap the custom top level inside a shell script,
see the lablgtk2 shell script for instance:
	http://svn.gna.org/viewcvs/lablgtk/trunk/src/lablgtk2.in?rev=1313&dir_pagestart=100&view=markup


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

end of thread, other threads:[~2007-09-21 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-21 14:31 ocamlmktop 3.10 fails to link cmo files? Massimiliano Brocchini
2007-09-21 15:18 ` [Caml-list] " Julien Moutinho
2007-09-21 15:37   ` Massimiliano Brocchini
2007-09-21 15:38   ` Massimiliano Brocchini
2007-09-21 15:56     ` Julien Moutinho

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