-
Notifications
You must be signed in to change notification settings - Fork 742
ignored __stdcall #547
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
Comments
Huh, we should keep track of that, thanks for the report. |
So, fun part is I can't reproduce because I don't have a windows machine. That being said, I can probably find something or coerce libclang to show it. Meanwhile, if you could do the following for me, it'd be super-helpful:
__stdcall void bar();
And post the results here, it'd be great :) Thanks in advance! |
See #549, this is arguably a libclang bug :(. That patch works around the issue and should work. Thanks for reporting! |
here result of
|
I used virtual box image, that provide Microsoft for free: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
note, that by default bindgen emit code with |
😞 I'll have to add an explicit path for that I guess. Sigh. Does |
For note: this is Sun/Oracle guys fault in usage of
Yes |
Oh, sure, sorry if I made you think this was somehow your fault. It's just quite disappointing to see this intersection between libclang and rustc bugs that makes bindgen even more complicated than what it is :( |
Actually reading that bug and the rust source seems even funnier. Since there's a hard-coded limit in the number of arguments they implement these traits for, that means that bindgen will not produce compilable code for stuff like:
|
I added a fix for that too at #549. |
Thanks, I tested on windows 7 (32 bit), and at now my project(https://github.com/Dushistov/rust_swig) works on windows without problems, at least all tests passed. |
This simplified example to demonstrate error, that cause random crashes,
in jni dll (windows 7 32bit) written on rust. The cause is silent replace of
__stdcall
calling conversationwith
__cdecl
calling conversation:Input C/C++ Header
Bindgen Invokation
Actual Results
Expected Results
The text was updated successfully, but these errors were encountered: