You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating a c binding and including it in a C++ project, there is an error and a warning. Are there any plans or desire to add a C++ generator? I found an easy workaround.
The following warning is fixed by renaming the c file generated to cpp:
clang-14: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
This error is from additional strictness in C++: split.cpp:34:14: error: assigning to 'char *' from incompatible type 'void *'
When generating a c binding and including it in a C++ project, there is an error and a warning. Are there any plans or desire to add a C++ generator? I found an easy workaround.
The following warning is fixed by renaming the c file generated to cpp:
This error is from additional strictness in C++:
split.cpp:34:14: error: assigning to 'char *' from incompatible type 'void *'
A compatible C change is to do a cast:
wit
We should add the cast to the c bindings.
The text was updated successfully, but these errors were encountered: