home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4182 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.8 KB  |  56 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: Problem with large DGROUP segment, MS C7 
  5. Distribution: world
  6. References: <8051@skye.ed.ac.uk>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 41
  11. Date: Sat, 12 Dec 1992 18:58:09 +0000
  12. Message-ID: <724186689snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <8051@skye.ed.ac.uk> jacs@aiai.uucp writes:
  16.  
  17. >Hi,
  18. >
  19. >I'm compiling a largish Windows program with MS C7, large model, and linking
  20. >gives me an L1074 error - DGROUP segment larger than 64K.
  21. >How can I get round this, or can I?  For some reason,
  22. >generating a MAP file doesn't work (the file is empty) although
  23. >I've given the /MAP:FULL and /LI options to the linker.
  24. >
  25. >Heeeelp....!
  26. >
  27. >Thank you for any tips.
  28. >
  29. >Julian Smart
  30. >jacs@aiai.ed.ac.uk
  31. >
  32.  
  33. There are several options:
  34.  
  35. 1.  Use the "/Gtn" flag to tell the compiler to put all items greater than
  36.     "n" bytes long into FAR DATA.
  37.  
  38. 2.  If you have any global or static arrays, use "malloc" or "GlobalAlloc"
  39.     instead.
  40.  
  41. 3.  Put any quoted strings into a STRINGTABLE resource in the program's RC
  42.     file.
  43.  
  44. 4.  Make sure the stack is no larger than it has to be.
  45.  
  46. These measures should help.
  47.  
  48. -- 
  49. --------------------------------------------------------------------------
  50. | Chris Marriott                   | chris@chrism.demon.co.uk            |
  51. |                                  | BIX: cmarriott                      |
  52. | (Still awaiting inspiration      | CIX: cmarriott                      |
  53. |  for a witty .sig .... )         | Compuserve: 100113,1140             |
  54. --------------------------------------------------------------------------
  55.  
  56.