Skip to content

MSVC error C2026: string too big #166

Open
@gibki

Description

@gibki

I have a huge enum (6000+ options) in my cdef. The generated C code for the array of _cffi_enum_s, field enumerators 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 have MyEnum's fields on my imported lib object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions