This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linking problem gcj and c++


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


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