This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: Trouble with simple CNI example


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/


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