simple question

Martin Bjorklund <>
Mon May 14 09:29:29 CEST 2001


Luke Gorrie <> wrote:
> "Jonas Dageförde" <> writes:
> 
> > Dear Sir or Madam, I'm trying to start "erl" or "werl" under Windows
> > 98 with the argument "-pa <directory>" and/or "-pz <directory>". I can
> > see the key/value pair in the argument list returned by
> > "init:get_arguments()". But if I try to load a module with
> > "c(mymodule)", erlang doesn't find it, if it is in the "own_files"
> > directory. What can I do so that I don't have to put all my source and
> > header files in the "C:\Programme\erl5.0.2" directory?
> 
> c(mymodule) actually compiles (and loads) the mymodule.erl file down
> to mymodule.beam.

And if you have the compiled (.beam) file in your path, you can do
l(mymodule) to load it.

I.e. c(mymodule) compiles mymodule.erl from *current dir* to
                 mymodule.beam, and loads mymodule.beam

     l(mymodule) loads mymodule.beam from the code path (code:get_path()).


/martin



More information about the erlang-questions mailing list