ochafik/nativelibs4java — Issue #271: Are the Wiki TypeMapping examples up to date?
Author: rit001
Created: 2012-02-23 23:16:41+00:00
State: open

You may have guessed from past posts that I am very much starting from the begining with your produce and so am very dependent on the notes and examples I can find on the site and within the forums.

I am wondering if the Struct example on http://code.google.com/p/bridj/wiki/TypeMapping is now not in sync with Bridj as I am having problems when copying the structure from 2 of the lines

1) S myStruct = new S();
2) Pointer pS = Pointer.getPointer(myStruct);
3) funVal(myStruct);
4) funVal(myStruct.get());

When I try and follow line 2 I get a no suitable method found error, but I have found other examples that seem to use a pointerTo method rather than getPointer.

Line 4 also seems to be using a method (get) that does not show up within my struct class.

All my tests are being done against jnaerator-0.9.9-SNAPSHOT-shaded

Thanks

Roger