This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: c++ can't understand extern "Java".


>>>>> "Manosiz" == Manosiz Bhattacharyya <mano@cse.ucsc.edu> writes:

Manosiz> I was tring to build the libgcj on Solaris. After a few steps
Manosiz> in the Makefile, it wanted to compile prims.cc with the c++
Manosiz> compiler.  However, in doing so, it got confused with the
Manosiz> extern "Java" statement in javaprims.h. I could not find a
Manosiz> c++ in the distribution of egcs. So it was picking up the
Manosiz> default c++ compiler in my system, which obviously did not
Manosiz> know of this.

As you discovered, you have to use the C++ compiler that comes with
egcs to compile libgcj.  The C++ compiler has some changes to make it
Java-aware.

I don't know why your egcs doesn't have a C++ compiler.  Mine does.
Did you get egcs via cvs?  Or via snapshots?

Tom

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