Thread overview
[BUG] Linker Error
Apr 19, 2004
Manfred Nowak
Apr 19, 2004
Walter
Apr 19, 2004
Manfred Nowak
Apr 19, 2004
Ilya Minkov
April 19, 2004
WinXP dmd 0.82

<code>
void main(){
  version(err)
    static int[ 9150465] arr;
  else
    static int[ 9150464] arr;
}
</code>

yields a linker error when compiled with version=err.

So long!
April 19, 2004
"Manfred Nowak" <svv1999@hotmail.com> wrote in message news:c5v850$p2u$1@digitaldaemon.com...
> WinXP dmd 0.82
>
> <code>
> void main(){
>   version(err)
>     static int[ 9150465] arr;
>   else
>     static int[ 9150464] arr;
> }
> </code>
>
> yields a linker error when compiled with version=err.

Yes, it's a known bug in optlink that it fails with enormous static data arrays. The workaround is to new them.


April 19, 2004
Walter wrote:

> Yes, it's a known bug in optlink that it fails with enormous static data arrays. The workaround is to new them.

It is time to fix that: under Win64 the linker goes into an infinite loop.

So long!
April 19, 2004
Manfred Nowak schrieb:

> It is time to fix that: under Win64 the linker goes into an infinite loop.

There is another linker which fixes that here:

http://cmeerw.org/prog/owtools/

Walter has said his OPTLINK refuses to be changed, since it's a huge tool written all in handoptimized assembly.

-eye