chipKIT® Development Platform

Inspired by Arduino™

MPIDE uses MPLAB XC 32 compiler

Created Tue, 26 Aug 2014 14:41:47 +0000 by Nicola


Tue, 26 Aug 2014 14:41:47 +0000

Hello, I'm using MPIDE to program ChipKit Uno 32, i would like to know if MPIDE by ChipKit uses MPLAB XC32 by Microchip to compile the sketchs, because MPIDE generates error when I include the standard library <vector> of C++; Thanks!!


Tue, 26 Aug 2014 14:54:13 +0000

No, it doesn't use XC32++ - it uses pic32-tools, which is the open-source portions of XC32++.

Not that the compiler makes much difference, because it's the C / C++ library that matters, and MPIDE uses "newlib" while XC32 uses a different library (I forget what it's called now), and that is where <vector> is.

Is the error you are seeing about a missing function "std::__throw_bad_alloc()"? If so you just need to define it yourself in your code:

void std::__throw_bad_alloc()
  Serial.println("Unable to allocate memory");