James19142 -4 Newbie Poster

I just started using Qt5 and now i'm getting an error which seems to be generated near the end of compiling saying this:
cc1plus.exe: out of memory allocating 408 bytes.

I compiled this same exact code in Qt 4.8.1 without any problems multiple times. I have no way of getting that version back, so I'm in a position where I can't compile. I think it's related to the memory used while compliling because I was able to build a very small program fine, giving me an 80 kB executable; this other app has a load of icons and other things which when built, totaled about 7.1 mB (in Qt 4.8.1). I searched Google and found some information, but not enough to come to a solution.

specs:
RAM 4GB
CPU 2.13GHz 4 cores