home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / ibm / pc / programm / 374 < prev    next >
Encoding:
Text File  |  1992-09-07  |  1.2 KB  |  41 lines

  1. Xref: sparky comp.sys.ibm.pc.programmer:374 comp.os.msdos.programmer:9075
  2. Newsgroups: comp.sys.ibm.pc.programmer,comp.os.msdos.programmer
  3. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!pacbell.com!network.ucsd.edu!qualcom.qualcomm.com!cancun!rdippold
  4. From: rdippold@cancun.qualcomm.com (Ron Dippold)
  5. Subject: Re: Group DGROUP exceeds 64K
  6. Message-ID: <rdippold.715665099@cancun>
  7. Sender: news@qualcomm.com
  8. Nntp-Posting-Host: cancun.qualcomm.com
  9. Organization: Qualcomm, Inc., San Diego, CA
  10. References: <1992Sep4.213550.13151@pollux.lu.se>
  11. Date: Sat, 5 Sep 1992 03:51:39 GMT
  12. Lines: 27
  13.  
  14. lars_s@gemini.ldc.lu.se (Lars Sigebo) writes:
  15. >I'm using Borland C++ version 3.0 in large memory model and are trying to 
  16. >link a couple of modules. I got this message from TLINK:
  17.  
  18. >     Error: Group DGROUP exceeds 64K
  19.  
  20. Move your "static" declarations in functions out to the top level of
  21. the file, from:
  22.  
  23. main()
  24. {
  25.     static int big[30000];
  26.     /* lotsa stuff */
  27. }
  28.  
  29. to 
  30.  
  31. static int big[30000];
  32. main()
  33. {
  34.     /* lotsa stuff */
  35. }
  36.  
  37. The same thing happens under Microsloth C.  Pain in the ass, and nasty
  38. for scoping, but Intel real mode is Intel real mode...
  39. -- 
  40. Q: Why did the tachyon cross the road?  A: Because it was on the other side.
  41.