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