This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linking problem gcj and c++
- From: David Daney <ddaney at avtrex dot com>
- To: Carsten Rasmussen <carsten dot rasmussen at silicide dot dk>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 25 Jun 2007 08:52:09 -0700
- Subject: Re: Linking problem gcj and c++
- References: <467F89E0.80005@silicide.dk>
Carsten Rasmussen wrote:
Dear GCJ org
I have a linking problem with gcj.
I it my first time I try to link java code to c++ using the CNI
interface may be I missed something in the documentation but I am
unable to find out what it is.
I really don't know what I am doing wrong. To illustrate the problem I
have made an simple example based on one of the example on the web.
You are trying to define a Java class (testclass) in a c++ program.
That does not work. With GCJ java classes must be defined in java
code. The CNI native methods are then written in C++ and linked in.
David Daney