-
Notifications
You must be signed in to change notification settings - Fork 31
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
pythonh: Function type does not match previously declared function with the same mangled name: stat64
#271
Comments
Ah. I never noticed it before because I only ever used dmd on the result and ldc is a bit more of a stickler wrt duplicate symbols. A workaround for now is to use dmd instead. |
For some reason libclang is returning "stat64" as the mangling for "stat" even though, as C linkage functions, they don't mangle! |
I'm racking my head how to solve this without having to try and reduce the issue with libclang. There's no good way to know if the cursor is C or C++ (thereby avoiding any mangling whatsoever if not needed, as is the case here). There's a function to get the language, but it returns "C" for any and all functions regardless of them being |
cling can do a lot of things that libclang cannot. one of those things might be wrap the parts of clang + associated related code not in libclang.
…--
Laeeth Isharc
[email protected]
On Wed, 26 Aug 2020, at 3:50 PM, Atila Neves wrote:
I'm racking my head how to solve this without having to try and reduce the issue with libclang. There's no good way to know if the cursor is C or C++ (thereby avoiding any mangling whatsoever if not needed, as is the case here). There's a function to get the language, but it returns "C" for any and all functions regardless of them being `extern "C"` or not. There's a function to get linkage, but it doesn't do what you'd expect and basically tells you if a cursor is extern or not.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#271 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABSV67TNIK3CHGEHU4IUIXTSCUOL7ANCNFSM4P53FUHQ>.
|
If my understanding is correct, with this pr it will be a deprecation warning also with DMD dlang/dmd#8429 |
This dockerfile
will produce a file
pythonh.d
which contains this codingLDC2 complains:
The text was updated successfully, but these errors were encountered: