home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / programm / 11552 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!mcsun!sunic!dkuug!daimi!aau!psykseth
  3. From: psykseth@aau.dk (Seth Chaiklin)
  4. Subject: globally defining large arrays
  5. Message-ID: <1992Dec21.173347.19320@aau.dk>
  6. Summary: How do I define a global array over 64K?
  7. Organization: Aarhus University, Denmark
  8. Date: Mon, 21 Dec 1992 17:33:47 GMT
  9. Lines: 20
  10.  
  11. Dear DOS-ites,
  12.  
  13. I am trying to port a program from unix to MS-DOS (using TC 2.0).  I
  14. have run into a problem with a large (40,000 element, unsigned
  15. integer) array.  I get a "Too much global data defined in file" error
  16. message.  So I figure the "trick" is to define a far pointer and then 
  17. read in values from a file.  Well I have tried this, but without much
  18. success.   Is this because it is not possible (I hope not)?  Or is it
  19. because I have not mastered the right syntax (much more likely)?
  20.  
  21. [For what it is worth, I got the exact same error in the same place
  22. when I had a friend compile the source file in BC++ 3.0, but it
  23. compiled with no problems under OS2/2.0]
  24.  
  25. Any advice (or just undocumented code) is appreciated.
  26.  
  27. Humbly yours,
  28.  
  29.  Seth Chaiklin
  30.  psykseth@aau.dk
  31.