-
Notifications
You must be signed in to change notification settings - Fork 50
MSVC error C2026: string too big #166
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
@nitzmahone Here is a patch to fix the problem. As usual, I'm not used to github enough to make a pull request without spending a lot more time than I spent on this patch.
|
Applied the patch in #167 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a huge enum (6000+ options) in my cdef. The generated C code for the array of
_cffi_enum_s
, fieldenumerators
thus contains a humongous string which trips MSVC.Huge generated strings need to be split. As a workaround I resorted to having
typedef ... MyEnum;
in the cdef, but now I don't haveMyEnum's
fields on my importedlib
object.The text was updated successfully, but these errors were encountered: