Dmitri Fedorov <dmitrif.xandros@xxxxxxxxx> writes: > I'm compiling a 45M cpp file generated by gsoap on Debian lenny that's > running as a virtual machine on the VMware workstation and g++ is > quitting on me. > > First it was "virtual memory exhausted: Cannot allocate memory" error, > after that I set a limit on virtual memory and now I get "cc1plus: out > of memory". > > Could anybody give me hint what direction to dig? Compiler options? > Virtual memory size? > > Of course I cannot change the cpp file, and this is gcc 4.3. If you can't change the C++ file, then your only real choices are to compile without optimization, or to add more swap space. Ian