List Info

Thread: "ocaml_beginners"::[] help using third party libraries




"ocaml_beginners"::[] help using third party libraries
user name
2006-11-24 21:06:26

On Fri, 24 Nov 2006, drehman27 wrote:

> Thanks for the reply.
>
> I built the toplevel to test if the library was loaded. What I would
>; like to do is to be able to use this library (and others) in OCaml
>; programs that I compile with OCamlMakeFile.
>
> If I do #use "topfind" and then #require "extlib" it works. But it
> doesn't when I use the MakeFile.

I don't understand: if you set PACKS = extlib
and do "make nc" or "make bc", it should work fine.

Martin

&gt; --- In ocaml_beginners%40yahoogroups.com">ocaml_beginnersyahoogroups.com, Richard Jones <rich...> wrote:
&gt;>
>;> On Thu, Nov 23, 2006 at 11:20:01PM -0000, drehman27 wrote:
&gt;>> I compiled my program with "make bc top"
>>&gt; But when I try the following in the toplevel I created, the DynArray
>>>; module is not loaded. How can I fix this?
>;>>
>>>; # DynArray.create;;
&gt;>> Unbound value DynArray.create
>>
>&gt; I'm not really familiar with building toplevels using GODI, but you
>&gt; could try dynamically loading extlib instead:
>>
&gt;> ocaml -I +extlib
>> #load "extLib.cma";;;
>&gt;
>&gt; (note the initial # is part of the #load command, not a prompt).
>>
&gt;> Of course that doesn't really answer your problem (how to build a
>>; custom toplevel), and may not work if you're on some backwards
>> platform that doesn't do dynamic linking.
>>
&gt;> Rich.
>;>
>> --
>&gt; Richard Jones, CTO Merjis Ltd.
>> Merjis - web marketing and technology - http://merjis.com
>> Internet Marketing and AdWords courses - http://merjis.com/courses -
> NEW!
>> Merjis blog - http://blog.merjis.com - NEW!
>>
>
>
>
>
>;
> Archives up to November 11, 2006 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
> The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
> Attachments are banned and you're asked to be polite, avoid flames etc.
> Yahoo! Groups Links
>;
>
&gt;
>

--
Martin Jambon, PhD
http://martin.jambon.free.fr

Ce message est confidentiel. Merci !
This message is confidential. Thanks!

__._,_.___
.

__,_._,___
"ocaml_beginners"::[] help using third party libraries
user name
2006-11-25 19:12:35

You are right. It's just the "make top" that doesn't work. Sorry for
the confusion.

--- In ocaml_beginners%40yahoogroups.com">ocaml_beginnersyahoogroups.com, Martin Jambon
&lt;martin_jambon...> wrote:
&gt;
> On Fri, 24 Nov 2006, drehman27 wrote:
&gt;
> > Thanks for the reply.
&gt; >
> > I built the toplevel to test if the library was loaded. What I would
>; > like to do is to be able to use this library (and others) in OCaml
>; > programs that I compile with OCamlMakeFile.
> >
> > If I do #use "topfind" and then #require "extlib" it works. But it
> > doesn't when I use the MakeFile.
>
> I don't understand: if you set PACKS = extlib
&gt; and do "make nc" or "make bc", it should work fine.
>;
>
> Martin
&gt;
> > --- In ocaml_beginners%40yahoogroups.com">ocaml_beginnersyahoogroups.com, Richard Jones <rich> wrote:
&gt; >>
> >> On Thu, Nov 23, 2006 at 11:20:01PM -0000, drehman27 wrote:
&gt; >>&gt; I compiled my program with "make bc top"
> >>&gt; But when I try the following in the toplevel I created, the DynArray
> >>&gt; module is not loaded. How can I fix this?
>; >>&gt;
> >>&gt; # DynArray.create;;
&gt; >>&gt; Unbound value DynArray.create
> >>
> >> I'm not really familiar with building toplevels using GODI, but you
> >> could try dynamically loading extlib instead:
> >>
> >> ocaml -I +extlib
> >> #load "extLib.cma";;;
> >>
> >> (note the initial # is part of the #load command, not a prompt).
> >>
> >> Of course that doesn't really answer your problem (how to build a
> >> custom toplevel), and may not work if you're on some backwards
> >> platform that doesn't do dynamic linking.
> >>
> >> Rich.
>; >>
> >> --
> >> Richard Jones, CTO Merjis Ltd.
> >> Merjis - web marketing and technology - http://merjis.com
> >> Internet Marketing and AdWords courses - http://merjis.com/courses -
> > NEW!
> >> Merjis blog - http://blog.merjis.com - NEW!
> >>
> >
> >
> >
> >
> >
> > Archives up to November 11, 2006 are also downloadable at
http://www.connettivo.net/cntprojects/ocaml_beginners/
> > The archives of the very official ocaml list (the seniors' one)
can be found at http://caml.inria.fr
> > Attachments are banned and you're asked to be polite, avoid flames
etc.
> > Yahoo! Groups Links
>; >
> >
> >
> >
>
> --
> Martin Jambon, PhD
> http://martin.jambon.free.fr
>
> Ce message est confidentiel. Merci !
> This message is confidential. Thanks!
&gt;

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )