www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17728] New: Optlink: Error 168: >64K Global Types

https://issues.dlang.org/show_bug.cgi?id=17728

          Issue ID: 17728
           Summary: Optlink: Error 168: >64K Global Types
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

As reported here: https://github.com/DigitalMars/optlink/issues/21

I'm getting this error in a mid-sized application (using vibe-d and another
internal library of similar size). It appears that this limit is quite easy to
reach with moderate template use. The question is if anything can be done about
this in the linker, or if this is a fundamental limitation rooted in the object
file format.

Message:
https://github.com/DigitalMars/optlink/blob/7c096397c052b209cb2cdf2dbe238fecd482239a/common/errors.asm#L1378
Constant:
https://github.com/DigitalMars/optlink/blob/7c096397c052b209cb2cdf2dbe238fecd482239a/cv/cvtypcon.asm#L2819

--
Aug 07