www.digitalmars.com         C & C++   DMDScript  

c++.idde - Using -HD in idde

reply "dt" <tinkham ucalgary.ca> writes:
I am getting "out of memory" errors while compiling a project I have set up
in the IDDE. Short of transforming the makefile to use from the command line,
how do I tell IDDE to add -HD500 to the compiler flags?

In Project Settings, if I specify "Use External Make File", specifying the
IDDE generated makefile with -HD500 flag added, I get an Application Error "
... The memory could not be "read" ", which crashes IDDE.

Thanks,
Doug
May 02 2005
parent reply "dt" <tinkham ucalgary.ca> writes:
"dt" <tinkham ucalgary.ca> wrote in message
news:d561dj$2jui$1 digitaldaemon.com...
 I am getting "out of memory" errors while compiling a project I have set up
 in the IDDE. Short of transforming the makefile to use from the command
line,
 how do I tell IDDE to add -HD500 to the compiler flags?
Ok, so I just decided to smake from the command line. On Win2K, PIII, Task Manager tells me I had 78 MB physical membory left, so I set -HD70 in CFLAGS. What I notice when I try to build, as soon as used memory gets to about 33MB above used memory before the build started, build terminates with "out of memory". It seems the -HD70 flag is ignored, and it bails out at 30 MB. Has anyone any experience with the -HD flag, and can you confirm it works? Thanks
May 02 2005
parent reply "dt" <tinkham ucalgary.ca> writes:
"dt" <tinkham ucalgary.ca> wrote in message
news:d567dp$to$1 digitaldaemon.com...
 how do I tell IDDE to add -HD500 to the compiler flags?
RTFM. did that, fixed.
 Ok, so I just decided to smake from the command line. On Win2K, PIII, Task
 Manager tells me I had 78 MB physical membory left, so I set -HD70 in
CFLAGS. I'm actually using -HP70 (memory pool), not -HD70 (header directory). Problem remains the same.
May 02 2005
parent reply "Walter" <newshound digitalmars.com> writes:
"dt" <tinkham ucalgary.ca> wrote in message
news:d5683h$2p6$1 digitaldaemon.com...
 "dt" <tinkham ucalgary.ca> wrote in message
 news:d567dp$to$1 digitaldaemon.com...
 how do I tell IDDE to add -HD500 to the compiler flags?
RTFM. did that, fixed.
 Ok, so I just decided to smake from the command line. On Win2K, PIII,
Task
 Manager tells me I had 78 MB physical membory left, so I set -HD70 in
CFLAGS. I'm actually using -HP70 (memory pool), not -HD70 (header directory).
Problem
 remains the same.
Which problem remains the same?
May 02 2005
parent reply "dt" <tinkham ucalgary.ca> writes:
"Walter" <newshound digitalmars.com> wrote in message
news:d56ook$hq1$1 digitaldaemon.com...
 Ok, so I just decided to smake from the command line. On Win2K, PIII,
Task
 Manager tells me I had 78 MB physical membory left, so I set -HD70 in
CFLAGS. I'm actually using -HP70 (memory pool), not -HD70 (header directory).
Problem
 remains the same.
Which problem remains the same?
I am getting an "out of memory" error while compiling. I watch in the TaskManager during compilation the amount of memory used during compilation. It ramps up to about 33 MB, then compilation stops with the error "out of memory" output. I add the switch -HP70 to my CFLAGS, and recompile, with the exact same result; it stops after about 33 MB increase in memory use. I watch the command line in output window of IDDE, and the -HP70 switch is listed on the command line to dmc. It makes me think either a) the problem isn't really out of memory, or b) the compiler is ignoring the -HP70 switch. I can set the switch to -HP500, and get the same result. This happens while compiling from both IDDE and command line via smake Digital Mars Compiler Version 8.42n STLPort 4.5.3 updated PSDK Win2K and WinME Thanks for any help, Doug
May 02 2005
parent "dt" <tinkham ucalgary.ca> writes:
"dt" <tinkham ucalgary.ca> wrote in message
news:d56v8p$phq$1 digitaldaemon.com...
 I am getting an "out of memory" error while compiling. I watch in the
 TaskManager during compilation the amount of memory used during
compilation.
 It ramps up to about 33 MB, then compilation stops with the error "out of
 memory" output. I add the switch -HP70 to my CFLAGS, and recompile, with
the
 exact same result; it stops after about 33 MB increase in memory use.
Ok, I got it working now. I reinstalled from DMC cd, updated, and now the -HP switch appears working. I clearly botched something earlier during updating/new SDK/etc., I think. Thanks, Doug
May 03 2005