-
Notifications
You must be signed in to change notification settings - Fork 746
Following the tutorial produces many warning messages on cargo test
#2104
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
Oh hey, someone else trying to make bindings to wxWidgets - ... Don't even try, bindgen does not support C++. C++ is so cursed that not even different C++ versions can interact with each other, and bindgen cannot even begin to understand classes |
Through bindgen could add |
The autogenerated tests should avoid doing that. |
By now the auto generated tests might be able to use |
I've run into the same warnings with my Apache2 and APR bindings. It's a relief to hear that the null pointer de-referencing is only in the auto-generated tests. But yes having this in the explained in FAQ or the tutorial documentation would be nice until a proper solution using |
The null deference warnings are resolved in #2203. I am pretty sure the message about the string literal is not from bindgen. Let me know if you think differently. |
This error occurs at step 5 of the tutorial: https://rust-lang.github.io/rust-bindgen/tutorial-5.html
I am on a Macbook, OS version 11.6 (big sur)
Input C/C++ Header
Sorry, I know the template says "no #includes", but I'm not sure how to view the contents of this system header. If there is a specific bzip2.h file that I "should" be using for this tutorial, I am happy to try it.
Bindgen Invocation
build.rs
:Actual Results
Expected Results
I would expect output to match the output shown on the doc page.
There are 2 "errors" to me:
The text was updated successfully, but these errors were encountered: