List Info

Thread: Re: "ocaml_beginners"::[] Compiling with external modules




Re: "ocaml_beginners"::[] Compiling with external modules
country flaguser name
Germany
2007-05-08 03:17:49

On Mon, 30 Apr 2007 10:31:21 +0100
Richard Jones < rich%40annexia.org">richannexia.org> wrote:

> On Mon, Apr 30, 2007 at 12:16:47PM +1000, Christian Lerrahn wrote:
&gt; > Hi,
> > I assume that this is a stupid question but, after all, this is a
> > beginners list. So I'll give it a shot.
&gt; >
> > I've written code that uses the Str module. Now this module has to
> > be loaded first and I can do that in the toploop without any
> > problems. However, I can't compile the code. I tried using findlib
> > as described in
> >
> > http://www.ocaml-programming.de/packages/documentation/findlib/guide-html/quickstart.html
> >
> > but then ran into the problem that suddenly the compiler could not
> > find my own modules any more which are in the same directory and
> > also used. Can I tell the compiler somehow that the library is at a
> > certain path like I would using -l with gcc? I checked ocamlc's man
> > page but couldn't find it.
>
> What ocamlfind command are you running and what are the error
&gt; messages?

Sorry for the late reply. I'm using the form

ocamlfind ocamlc -o myprogram -package netstring -linkpkg myprogram.cmo

from the URL I posted.

Cheers,
Christian

__._,_.___
.

__,_._,___
Re: "ocaml_beginners"::[] Compiling with external modules
country flaguser name
United Kingdom
2007-05-08 07:52:20

On Tue, May 08, 2007 at 06:17:49PM +1000, Christian Lerrahn wrote:
&gt; On Mon, 30 Apr 2007 10:31:21 +0100
> Richard Jones < rich%40annexia.org">richannexia.org> wrote:
&gt; > What ocamlfind command are you running and what are the error
&gt; > messages?
>
> Sorry for the late reply. I'm using the form
>;
> ocamlfind ocamlc -o myprogram -package netstring -linkpkg myprogram.cmo
>
> from the URL I posted.

And the error messages?

Rich.

--
Richard Jones
Red Hat

__._,_.___
.

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

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