Trouble with simple CNI example

Ranjit Mathew rmathew@gmail.com
Mon Apr 26 13:40:00 GMT 2004


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/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /