-
Notifications
You must be signed in to change notification settings - Fork 745
Panic at TranslationUnit::parse
#249
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
Yes, bindgen right now doesn't support throwing multiple files at it directly. This in this case is somewhat silly because we can't sort the files for you, and files have dependencies between them. The way to do it is either creating a master header file with the appropriate includes: // all.h
#include "include/ofxCore.h"
// (and so on...) Or using the
I guess we can try to enhance the use, or at least the error message though, so leaving it open... |
Oh right, my bad.. it does sound silly now that you say it. I wonder, would it be possible for bindgen to create that "master file" including all the headers itself? Does order really matter if you include them all anyway? It could even be a temporary file so that it doesn't leave any artifacts A better error message would be great! :) |
Hmm... I don't think it's possible for bindgen to make the "master header" in the general case. There are definitely dependencies between headers. Usually not many in public APIs, but still existing. |
It's been a long time since I have done any C / C++ but, assuming the headers have header guards preventing double inclusion, what other problems could there be? |
Generate better func decls for void returns
I got this error by accidentally omitting |
We support multiple headers now. |
I tried to run bindgen on the openfx header files but I got a panic:
EDIT: I tried to run bindgen on every file individually, but I can't reproduce it that way...
The text was updated successfully, but these errors were encountered: