Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Anchor(prog_cni)>>Are there any examples of how to use CNI?

Anchor CNI examples
0
Posted

Anchor(prog_cni)>>Are there any examples of how to use CNI?

0

Glenn Chambers has created a couple of trivial examples for version 2.95 and version 3.0. As a comparison, here is the same example as a JNI application using Kaffe. The same code will work with GCJ, as shown here. Note that for version 2.95, you must compile the C++ files used for CNI with the -fno-rtti option. This constraint does not apply in version 3.0 and later. The primary source of documentation for CNI is at http://gcc.gnu.org/java/papers/cni/t1.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123