This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: define-syntax and define-simple-class
- From: David O'Callaghan <david dot ocallaghan at cs dot tcd dot ie>
- To: Kawa List <kawa at sources dot redhat dot com>
- Date: Tue, 08 May 2007 10:27:42 +0100
- Subject: Re: define-syntax and define-simple-class
- References: <463A1563.5090501@cs.tcd.ie> <463BD82B.8080709@bothner.com>
Hi Per,
On 05/05/07 02:04, Per Bothner wrote:
> The problem is that MyAdd.scm compiles to a module class named
> MyAdd.class. This conflicts with the class created by the
> define-simple-class. Kawa doesn't catch this error.
>
> One solution is to renamed MyAdd.scm, or change the module class name
> using either the -T option, or the module-name declaration.
Renaming the source file (or the class created by define-simple-class)
did the trick. I found it was necessary to compile with --module-static
to be able to use generated class from other Kawa or Java programs.
Thanks for your help,
David