Closed GoogleCodeExporter closed 9 years ago
Hi,
Thanks a lot for your detailed bug report !
This bug is most likely caused by the wrong parsing of the "out" (and maybe
"in")
argument, which is a known severe limitation of the parser.
Issue #22 was opened a while ago for this and is now scheduled for version 1.0
or
earlier (your report will likely make the fix arrive quicker :-))
There are two possible workarounds for now:
- edit the offending header and rename the arguments "out", "in" and any other
that
match a C/C++/ObjectiveC modifier (full list available here :
http://code.google.com/p/jnaerator/source/browse/trunk/jnaerator/src/main/java/c
om/oc
hafik/lang/jnaerator/parser/Modifier.java)
- edit JNAerator's sources in Modifier.java to comment out the ObjectiveC
modifiers
that block your file from being parsed correctly
Cheers
Original comment by olivier.chafik@gmail.com
on 1 Oct 2009 at 12:28
Hi,
Renaming "out" and "in" did the trick! Renaming "out" alone is not enough.
I also understand all the errors about "__declspec" now ;-)
Thanks a lot for the quick answer and workaround.
I'll be watching for the next release and will test it as soons as it is
available.
Regards
Original comment by parisjoi...@yahoo.fr
on 1 Oct 2009 at 1:09
Issue was fixed in revision #861 and latest jnaerator-0.9.2-SNAPSHOT.jar
Looking forward to getting more bug reports (along with success reports ;-))
Cheers
Original comment by olivier.chafik@gmail.com
on 1 Oct 2009 at 11:35
jnaerator-0.9.2-SNAPSHOT.jar fixes the issues reported here.
Thanks!
The following struct is not handled because of "native", but I can live with it
and
will wait for Issue #22 to be resolved.
struct AVMetadataConv{
const char *native;
const char *generic;
};
Original comment by parisjoi...@yahoo.fr
on 2 Oct 2009 at 10:11
Original issue reported on code.google.com by
parisjoi...@yahoo.fr
on 1 Oct 2009 at 10:40Attachments: