where to learn how to use java objects in C++
David Daney
ddaney@avtrex.com
Thu Sep 13 22:01:00 GMT 2007
Jeff Sadowski wrote:
> public class five
> {
> public static int hello()
> {
> return 5;
> }
> public static void main(String argv[])
> {
> System.out.println(hello());
> }
> }
.
.
.
> int main(int argc,char **argv)
> {
> int test=0;
> test=(int)five::hello();
> std::cout<<test<<"\n";
> return 0;
> }
You cannot do it that way.
Take a look at:
http://gcc.gnu.org/onlinedocs/gcj/About-CNI.html
David Daney
More information about the Java
mailing list