home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19925 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  825 b 

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!network.ucsd.edu!coast!sah
  2. From: sah@coast.ucsd.edu (Scott A. Herndon)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Think C 32K segment
  5. Date: 16 Dec 1992 20:32:17 GMT
  6. Organization: Center for Coastal Studies, SIO
  7. Lines: 21
  8. Distribution: usa
  9. Message-ID: <1go3ohINN4pq@network.ucsd.edu>
  10. NNTP-Posting-Host: coast.ucsd.edu
  11.  
  12.     Greetings,
  13.  
  14.         I am trying to write a program using ThinkC 5.x that
  15.     declares a large array.
  16.  
  17.     int Height[129][129];
  18.  
  19.         I get the "code overflow" message when trying to compile
  20.     and I think this has to do with some sort of 32k segment limitation.
  21.     My questions are:
  22.  
  23.     i) Am I correct about the cause of the error?
  24.     ii) How can I declare and use a large array like the one above
  25.         that is about (2*129)^2 bytes large?
  26.  
  27.  
  28.     I appreciate any help/suggestions!
  29.  
  30.  
  31.  
  32.  
  33.