hello,<div>I try to build some basic script wich use external macro with -i switch from gsc and I encounter an annoying error.</div><div><br></div><div>Here is the simple test :</div><div><div>@ ll</div><div>total 6</div><div>
-rw-r--r--  1 cydu  cydu  60 May  5 10:36 build.scm</div><div>-rw-r--r--  1 cydu  cydu  39 May  5 10:36 test-macro.scm</div><div>-rw-r--r--  1 cydu  cydu  55 May  5 10:36 test-simple.scm</div><div>@ more test-macro.scm</div>
<div>(define-macro (my-macro x)</div><div>  `(+ x 1))</div><div>@ more test-simple.scm</div><div>(define my-func</div><div>  (lambda (x)</div><div>    (+ x (my-macro x))))</div><div>@ more build.scm</div><div>(include "test-macro.scm")</div>
<div>(compile-file "test-simple.scm")</div><div>@ gsc-gambit -i build.scm</div><div>@ gsi-gambit</div><div>Gambit v4.6.4</div><div><br></div><div>> (load "test-simple")</div><div>*** WARNING -- Variable "my-macro" used in module "test-simple.o1" is undefined</div>
<div>"/usr/users/cydu/tmp/bug-test/test-simple.o1"</div><div>> </div><div>*** EOF again to exit</div><div>@ rm test-simple.o1</div><div>@ gsc-gambit             </div><div>Gambit v4.6.4</div><div><br></div><div>
> (include "test-macro.scm")</div><div>> (compile-file "test-simple.scm")</div><div>"/usr/users/cydu/tmp/bug-test/test-simple.o1"</div><div>> </div><div>*** EOF again to exit</div><div>
@ gsi-gambit</div><div>Gambit v4.6.4</div><div><br></div><div>> (load "test-simple")            </div><div>"/usr/users/cydu/tmp/bug-test/test-simple.o1"</div><div>> (my-func 3)                     </div>
<div>7</div><div>> </div></div><div>It fails from the i switch and succeed when I launch gsc and type the commands by myself.</div><div><br></div><div>It seems that the -i switch from gsc does not load the macro when it compile my file.</div>
<div>Any idea about what might cause that annoying error ?</div><div><br></div><div>thanks a lot</div><div>cyrille</div>