Re: Linking problem gcj and c++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux