Linking problem gcj and c++
David Daney
ddaney@avtrex.com
Mon Jun 25 16:11:00 GMT 2007
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
More information about the Gcc-help
mailing list