Reply To: VisualGDB error: cc1plus.exe: out of memory allocating

Sysprogs forums Forums VisualGDB VisualGDB error: cc1plus.exe: out of memory allocating Reply To: VisualGDB error: cc1plus.exe: out of memory allocating

#7550
John24
Participant

I found that the issue was the compiler needing more than 2Gb of memory. Fixed it telling Visual Studio 2013 to be /LARGEADDRESSAWARE (Handle Large Addresses). This can be usually done in multiple ways but because of using VisualGDB you can’t change linker settings in the properties sheet.

This can be done using the common prompt in windows.

  1. Open Common Prompt
  2. Go to visual studio binary folder “cd C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin
  3. Run “editbin /LARGEADDRESSAWARE “C:\SysGCC\raspberry\libexec\gcc\arm-linux-gnueabihf\4.9\cc1plus.exe” command with the location of GCC compiler executable location.

This should fix the problem.

  • This reply was modified 8 years, 2 months ago by John24.