This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: c++ can't understand extern "Java".
- To: Manosiz Bhattacharyya <mano@cse.ucsc.edu>
- Subject: Re: c++ can't understand extern "Java".
- From: Tom Tromey <tromey@cygnus.com>
- Date: 17 May 1999 11:54:17 -0600
- Cc: java-discuss@sourceware.cygnus.com
- References: <Pine.GSO.4.05.9905170902270.4982-100000@miranda.cse.ucsc.edu>
- Reply-To: tromey@cygnus.com
>>>>> "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