Increase string literal length limit

Viewed 6447

I have a lot of string literals that are bigger than 65535 bytes. I'm not allowed to save these strings to seperate files, how can I workaround with the string limit?

https://stackoverflow.com/a/11488682/7821462

  • MSVC: 2048

  • GCC: No Limit (up to 100,000 characters), but gives warning after 510 characters:

    String literal of length 100000 exceeds maximum length 509 that
    C90 compilers are required to support
    
4 Answers
Related