-
Notifications
You must be signed in to change notification settings - Fork 22
C linkage APIs cannot return a reference #148
New issue
Have a question about this project? Sign up for a free GitHub a 8000 ccount 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
(Moreover presumably functions returning ref params shouldn't have C linkage...) |
Hi Luke, thanks for the info. You are right, while fixing bindings that were previously "hidden", some of same were actually invalid for the C language. |
I wasn't able to reproduce this specific compilation errors using my linux, but anyhow these methods shouldn't have the external linkage flags, they are private methods. I'll fix it shortly, and I hope you'll be able to compile correctly. In the future, I hope I'll be able to change the C (manual) bindings to swig bindings, like it's done for C# (python in coming). |
I don't doubt this is the correct fix but it does actually break my clang block wrappers which call (The correct fix will be to use the C++ API directly, but I'm waiting for Swift's C++ interop to catch up. Perhaps by the time I need to use this code in anger it will have.) |
That's very interesting as both commit (together) merely change the defines that should never have been there, so it shouldn't be the cause of the recent compilation issues you have. |
Yeah, it’s more about symbol visibility, with the latest commit they’re no longer exported from the shared library. |
This reverts commit ab08c65.
This reverts commit ab08c65.
This reverts commit ab08c65.
Commit c5a5d54 (I think) is causing some problems building on my Linux arm64 build host, specifically:
I would have hoped that passing
-a "-DCMAKE_COMPILE_WARNING_AS_ERROR" -a "--compile-no-warning-as-error"
togen_cmake.sh
would have helped, but alas no.The text was updated successfully, but these errors were encountered: