This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: invoke GCJ .o files from C/C++ program
- To: a1tv86 at yahoo dot com
- Subject: Re: invoke GCJ .o files from C/C++ program
- From: Andrew Haley <aph at pasanda dot cygnus dot co dot uk>
- Date: 13 Jul 2000 15:20:03 -0000
- CC: bryce at albatross dot co dot nz, java-discuss at sourceware dot cygnus dot com
> Date: Thu, 13 Jul 2000 07:58:48 -0700 (PDT)
> From: Cecilia Vy-Ai Le <a1tv86@yahoo.com>
>
> But, I found the way to work arround. I remove
> 'virtual' keyword from the prototype for
> ::JavaTool::printLine(). Here is the change:
>
> class ::JavaTool : public ::java::lang::Object
> {
> public:
> //virtual void printLine (); -- generated by gcjh
> void printLine();
> JavaTool ();
> };
>
> What do you think? Is it an issue in gcjh or gcj?
It looks to me like a disagreement bewteen gcj and g++ over vtable layout.
Out of interest, can you post the output when you run the compiler
with the -v arg?
Andrew.