stack plus data exceed 64K?
Date: 5 Feb 2002 22:03:03 -0400These messages are a variation of “DGROUP > 64K”. For causes, please seethe preceding question.If you get this error in tiny model, your program is simply too big andyou must use a different memory model. If you get this link error inmodels small, compact, medium, large, or Microsoft’s huge, there aresome things you can do. (This error can’t occur in Borland’s hugemodel.)If you have one or two big global arrays, simply declare them far. Thecompiler takes this to mean that any references to them will use 32-bitpointers, so they’ll be in separate segments and no longer part ofDGROUP.Or you can use the /Gt[number] option with Microsoft or – Ff[=size] withBorland C++ 2.0 and up. This will automatically put variables above acertain size into their own segments outside of DGROUP.Yet another option is to change global arrays to far pointers. Then atthe beginning of your program, allocate them from the far heap(_fmalloc() in Microsoft, farmalloc() in Borland).