Pelles C forum

C language => Beginner questions => Topic started by: Marten on December 11, 2006, 09:59:19 PM

Title: declare a big structre field
Post by: Marten on December 11, 2006, 09:59:19 PM
Hi again !
why cant i declare a field of structres : struct squares{
      int begin;
      int end;
      int x;
   };
struct sqaures hello[100000];
it works with 10000 but 100000 seems to big! ? WHY ??? :?
Title: declare a big structre field
Post by: cane on December 30, 2006, 08:41:09 PM
Probably you're overflowing the stack limits. You can either increase the stack size (linker's /STACK option) or use heap allocation through malloc().