This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problem with building of libjava
- From: Andrew Haley <aph at redhat dot com>
- To: kobefan at gmx dot net
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 15 May 2006 16:09:55 +0100
- Subject: Re: problem with building of libjava
- References: <24855.1147705188@www113.gmx.net>
kobefan@gmx.net writes:
>
> the version I'm working right now is gcc 4.1.0! I have added some code to
> defineclass.cc in the directory libjava. For my code I have to include the
> header file "vector":
>
> Furthermore I have added something to the value of the variable
> DEFAULT_INCLUDES in file Makefile.in in directory libjava:
>
> DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
> -I$(top_builddir)/gcj -I/usr/include
> -I$(top_builddir)/../libstdc++-v3/include
>
> The /usr/include directory is necessary for OpenSSL. Wether I add the last
> line (.../libstd...) or not the error is the same. He just doesn't find the
> header file during compilation process.
>
> error message for "make":
Mixing gcj and C++ exceptions within a single compilation unit is
tricky. See 12.14, Exception Handling.
First, you should try compiling your code separately and linking it to
defineclass.cc.
> 4.
> In file included from ./../libstdc++-v3/include/vector:65,
> 5.
> from ../.././libjava/defineclass.cc:44:
> 6.
> ./../libstdc++-v3/include/bits/functexcept.h:41:31: error:
> exception_defines.h: No such file or directory
Here, you need a path to srcdir/libsupc++.
Andrew.