This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

internal compiler error: can't find class$


Hi

I have just started to play with libgcj, and I am getting the following error when I am trying to compile some c++ code:

internal compiler error: can't find class$

The c++ code I am compiling is a very simple piece of code, that includes to following line:


coutUI * output_interface = new coutUI();

Here I am instantiating a new "coutUI" object; coutUI is a c++ class which is a sub-class of the java interface OutputInterface, implemented in the OutputInterface.java file:


public interface OutputInterface {
    public void addNode(BlueNode parent, BlueNode child);
    public void checkQueue();
    public void getText(String s);
}

I compiled all the java source code (including OutputInterface.java) using gcj -C. Then I generated a corresponding .h file using gcjh, and it looks like this:


#pragma interface

#include <java/lang/Object.h>

extern "Java"
{
  class OutputInterface;
  class BlueNode;
}

class OutputInterface : public ::java::lang::Object
{
public:
  virtual void addNode (::BlueNode *, ::BlueNode *) = 0;
  virtual void checkQueue () = 0;
  virtual void getText (::java::lang::String *) = 0;

  static ::java::lang::Class class$;
} __attribute__ ((java_interface));

I wonder where "static ::java::lang::Class class$;" comes from, since it seems to be the source of my problem...
Thank you for your help


Thomas

" We know what we think we know,
   Just as we don't know what we want to know "
                        Oscar Wilde
                        The Picture of Dorian Gray


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]