[plt-scheme] Problem with compiled file dependencies

From: Paulo J. Matos (pocm at soton.ac.uk)
Date: Mon Mar 12 09:00:16 EDT 2007

On 3/10/07, Paulo J. Matos <pocm at soton.ac.uk> wrote:
>
> So, even though I have bar.dep and bar.zo compiled in, this still
> happens. Now, this is not a result I would expect. Possible bug?
>

Well, the only workaround I found up until now was to soft link
bar.scm into compiled/ which is surely an unwanted workaround, with
bar.zo in compiled/ there should be no reason for this to happen. So
I'm open to suggestions since I couldn't found a clean way out of this
one. :)

> Cheers,
>
> Paulo Matos
>
> > Robby
> >
> > On 3/10/07, Paulo J. Matos <pocm at soton.ac.uk> wrote:
> > > Hello all,
> > >
> > > I have the following:
> > > test/foo.scm
> > > (module foo mzscheme
> > >   (require "bar.scm")
> > >   (provide foo-test)
> > >
> > >   (define (foo-test x) (bar x)))
> > >
> > > test/bar.scm
> > > (module bar mzscheme
> > >
> > >   (provide bar)
> > >
> > >   (define (bar x)
> > >     (* 2 x)))
> > >
> > > Now in interactions:
> > > > (require (lib "compile.ss"))
> > > > (compile-file "test/foo.scm")
> > > #<path:test/compiled/foo.zo>
> > > > (dynamic-require "test/compiled/foo.zo" 'foo-test)
> > > . open-input-file: cannot open input file:
> > > "/home/pmatos/test/compiled/bar.scm" (No such file or directory;
> > > errno=2)
> > >
> > > I understand that bar.scm is not in the same dir as the compiled file.
> > > I could just compile the file to the same dir as the bar.scm but I
> > > would like to know about other solutions. Any suggestions?
> > >
> > > Cheers,
> > > --
> > > Paulo Jorge Matos - pocm at soton.ac.uk
> > > http://www.personal.soton.ac.uk/pocm
> > > PhD Student @ ECS
> > > University of Southampton, UK
> > > _________________________________________________
> > >   For list-related administrative tasks:
> > >   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> > >
> >
> >
> >
>
>
> --
> Paulo Jorge Matos - pocm at soton.ac.uk
> http://www.personal.soton.ac.uk/pocm
> PhD Student @ ECS
> University of Southampton, UK
>


-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK


Posted on the users mailing list.