Newsgroups: comp.sys.mac.programmer Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!sarah!bingnews!phyllis!kap1 From: kap1@phyllis.math.binghamton.edu (Dietrich Kappe) Subject: Arrays bigger than 32K. Message-ID: <1991Mar29.185449.4477@bingvaxu.cc.binghamton.edu> Sender: usenet@bingvaxu.cc.binghamton.edu (Mr UseNet) Nntp-Posting-Host: phyllis.math.binghamton.edu Organization: Dept of Math Sci., SUNY-Binghamton Distribution: usa Date: Fri, 29 Mar 1991 18:54:49 GMT I'm attempting to compile some code that uses arrays>32K in size.(Using LSC3.0) The arrays are multi dimensional. Example: short thing[60][60][8]; Now I know that LSC doesn't allow arrays>32K, so I thought "No problem, I'll just allocate the memory on the fly." Attempted Solution: typedef short thingType[60][60][8]; thingType *thing; ... thing=(thingType *)lmalloc(sizeof(thingType)); Of course I still get an illegal array limits error on the typedef statement. The compiler needs the array bounds for pointer arithmatic, and I certainly don't want to do all those pointer operations by hand. Any ideas on how I can get arround the 32K size limit without giving up array dimmension information? Thanks in advance, --Dietrich J. Kappe-- kap1@math.binghamton.edu