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