Edward Diener <[email protected]> writes: > I am seeing an out of memory message of: > > "cc1plus.exe: out of memory allocating 65536 bytes" > > when compiling code using mingw-64 from gcc-4.8.1, gcc-4.8.2, gcc-4.8.3, > gcc-4.9.0, and gcc-4.9.1. Nor is this just a mingw-64 problem as I am > seeing the same error when compiling the same code with mingw and gcc-4.8.1. > > Strangely this error does not occur when compiling the exact same code > using versions from mingw of gcc-4.3.0 through gcc-4.7.2. > > The code is heavily preprocessor code for my VMD library, which also > depends on the Boost PP library. In other words the code is almost > entirely involved with testing macro expansions in the libray. As a > piece of related information, which may not be very relevant, the latest > clang and versions of vc++ from vc++8 through vc++12 do not exhibit any > out of memory errors.
See if http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56746 applies to your case. If the answer is affirmative, passing -ftrack-macro-expansion=0 will reduce memory usage. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
