home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18578 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.8 KB  |  40 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!umn.edu!csus.edu!netcom.com!dominy
  3. From: dominy@netcom.com (Robert Dominy)
  4. Subject: Re: Aaaaargh! MPW C++ help needed!
  5. Message-ID: <1992Nov18.075523.15738@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. References: <1992Nov17.023541.7809@wam.umd.edu>
  8. Date: Wed, 18 Nov 1992 07:55:23 GMT
  9. Lines: 29
  10.  
  11. nebel@wam.umd.edu (Chris D. Nebel) writes:
  12.  
  13. >I've been translating a large Pascal project into C++, and it's actaully been
  14. >going quite well, all things considered.  Yesterday, however, I ran into a
  15. >very perplexing problem: one module simply won't compile.  CFront dies
  16. > [stuff deleted]
  17. >inside one of the included files.)  At first I thought it was running out
  18. >of memory, but even after an additional 10MB of partition space (for a grand
  19. >total of 22MB!), it still died in the exact same place, so that theory seems
  20. >out.  I tried commenting out that include, but the same error appeared in
  21. >another place.  Does anyone have any clue as to what's going on, and more
  22. >importantly, how to fix it?
  23.  
  24. I can almost guarantee that you are indeed running out of memory, but
  25. just increasing the partition size will NOT help.  This is because
  26. of the way MPW partitions its memory.
  27.  
  28. There is a very easy fix:  just include the -mf keyword in your CPlus
  29. command line.  This will instruct the compiler to steal memory from
  30. multifinder (the System) and all will be well.  There's an alternative
  31. way of modifying MPWs HEX 0 resource, but the -mf option is nicer
  32. since the memory is only grabbed while CFront is using it, leaving
  33. you space later to run debuggers and such without having to quit
  34. MPW.  You may also need the -mf option for Link when you get to that
  35. stage.
  36.  
  37. Robert Dominy
  38. Bear River Associates
  39.  
  40.