title: How to fix cc1plus.exe: out of memory allocating 65536 bytes
body: <p>I'm trying to compile a c++ program (that is 22MB). However I can't compile it because my compiler(MinGW) says:</p>
  <pre><code>cc1plus.exe: out of memory allocating 65536 bytes
  </code></pre>
  <p>I have searched much about it and I pretty much know what it is, but I have no idea how to fix it.
  And if you are wondering why is the file so fricking big, that's because i have hard coded images in there.</p>
  <p>If you have any ideas how to fix this, please tell me :)</p>