-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A library's include
does not consider directories provided with the flag -I
#494
Comments
If I change directory to |
AFAIK |
Can you do it the other way around so the files in |
Yes, it does:
And then R7RS small, says the following:
The above paragraph is immediatly followed with the following note:
And the behavior in that note is implemented by chicken, chez (racket, and cisco), gauche, gambit, chibi; Guile has a bug report, that includes a workaround. |
No. I use an
I will fallback to Note: That code looks interesting: https://github.com/justinethier/cyclone/blob/5e509495befc211d88285a7d4e377a9174df0690/cyclone.scm |
That part is talking about imported libraries, not included files. (But maybe it's intended to apply to included files too.)
Wow, I had no idea! Thank you for surveying it. |
Thanks for the bug report! Note you can work around this by compiling the library directly:
|
Pass append/prepend path options when compiling dependent libraries, avoiding any issues with include directives in the libraries.
Alright, this is properly fixed now on the |
It works. Thanks! |
It looks like it is not fixed... In any case, the
|
Sorry, I am prolly confusing. I found the problem, that might have been the problem from the start of this whole issue, it is related to ;; #> cat tmp/main.scm tmp/foobar/base.sld tmp/foobar/body.scm
(import (scheme base))
(import (scheme write))
(import (foobar base))
(display foobar)(newline)
(define-library (foobar base)
(export foobar)
(import (scheme base))
(cond-expand
(cyclone
(include "body.scm"))))
(define foobar "win")
;; #> ./cyclone -A tmp/ tmp/main.scm
Error: Unable to open file:
"body.scm"
;; #> |
IIUC, #494 allows It looks useful, tho, I have never seen Given (define-library (foo bar)
(import (scheme base))
(export foobar)
(cond-expand
(cyclone (include "body.scm"))) The |
Here is an example
checks.scm
program, that rely on a library(united base)
that includesbody.scm
:Then try to run
checks.scm
yields the following error:The text was updated successfully, but these errors were encountered: