-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BridJ: Can't call char* class_name::method_name(char* a, char* b) #38
Comments
Hello oleglbch, Thanks for your report ! VS2010 hasn't been tested yet, so there might be changes in the name mangling scheme that need to be worked out. Also, you should make sure to use the latest snapshot version of JNAerator (0.9.6-SNAPSHOT), bugs are regularly fixed in the wrappers generation code. CheersOlivier Google Code Info: |
(NB: full class name of the annotation is org.bridj.ann.Symbol) Google Code Info: |
That was quick :) Thanks a lot! I guess adding webstart for the latest version of JNAErator might be a good idea, because currently main page leads me to 0.9.5-SNAPSHOT. Thanks, Google Code Info: |
You're welcome :-) I believe the webstart link is correctly pointing to version 0.9.6-SNAPSHOT (if you downloaded it multiple times, beware of the " (1)" suffix syndrom when redownloading). If I missed the link you're referring to, would you mind telling me which it is exactly ? CheersOlivier Google Code Info: |
Yeah, you are right, 0.9.5 was there a couple of days ago and now it's 0.9.6. Thanks, Google Code Info: |
Hehe indeed, I did a silent update to support a feature requested on jna's mailing list :-) Regarding your question on running the same code with both VS2010 and GCC4, it should be all right : the logic is to first try and find the symbol(s) defined in the @symbol annotation (Which, btw, should contain an array, my bad : @symbol({ "..." })), then to look at the symbols exported by the library and try and parse the ones that look vaguely okay, then match the result of this parsing against the method signature. Happy binding ! CheersOlivier Google Code Info: |
Here are the functions i've tried so far: Thanks, Google Code Info: |
Hi Oleg, Thanks for the added details :-) Please feel free to open (many) new bugs as you find more issues :-) CheersOlivier Google Code Info: |
I have a library compiled in VS2010.
The code looks like this:
class __declspec(dllexport) class_name {
public:
class_name ();
char* method_name(char* filename, char* filename1);
}
And I get the following exception while trying to use it:
org.bridj.Demangler$DemanglingException: Parsing error at position 51: Invalid back reference
?method_name@class_name@@QAEPAPADPAD0@Z
Google Code Info:
Issue #: 36
Author: [email protected]
Created On: 2010-11-25T18:51:11.000Z
Closed On: 2010-11-27T22:19:58.000Z
The text was updated successfully, but these errors were encountered: