Using an uninitialized structure

B.Schulte Aldoric at gmx.de
Mon Sep 3 07:21:01 PDT 2007


Hi.

I don't get it working. So I ask here.

There is the problem:

CHAR_INFO buffer[];
buffer.length = 100;
foreach( inout CHAR_INFO ci; buffer ) { ci.Char.AsciiChar = ' '; ci.Attributes=7; }

If I try to compile this (even without the foreach) I get a linker error. The Linker can't find the __INIT symbol of the CHAR_INFO structure.

Well, sure - there IS NO __init symbol - But I don't WANT to init it somehow else.

I can't get it working :((

Thanks in advance for every help :)



More information about the Digitalmars-d mailing list