On Mon, 30 Apr 2007 10:31:21 +0100
Richard Jones < rich%40annexia.org">rich
annexia.org> wrote:
> On Mon, Apr 30, 2007 at 12:16:47PM +1000, Christian Lerrahn wrote:
> > Hi,
> > I assume that this is a stupid question but, after all, this is a
> > beginners list. So I'll give it a shot.
> >
> > 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
> 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
.