This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Trouble with simple CNI example
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: java at gcc dot gnu dot org
- Date: Mon, 26 Apr 2004 19:09:35 +0530
- Subject: Re: Trouble with simple CNI example
- References: <004e01c42b7a$791a7cc0$89e96251@abg2>
Vinstrumentation - Alex Gardiner wrote:
> Hi
>
> I am trying to learn how to use CNI with gcj. I have moderate Java
> experiance but little C++ experience.
>
> When I copy the example for Version 3 in FAQ 6.1, it does not compile. The
> error is in the sampNat line that with callSTLcode(). It tells me that
> this is undeclared.
>
> How do I declare it and how has this error occurred. I am using version
> 3.3.3
In sampNat.cc, if you insert the following line
after all the #include lines:
extern void callSTLcode( void);
doesn't it help?
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/