Hopefully this thread won't be too useless. I was attempting to compile some code that was using dynamic memory allocation with IDE 0.0.12. I want to post up the error (more explicitly) and the fix in case others run into the same issue as it took some digging to find:
Error:
Listing of all compiler output follows.
Note: <BUILD> stands for the temporary build directory used to compile your sketch, which is:
C:\Users\Scott\AppData\Local\Temp\build2561064226562165095.tmp
Also note that because of preprocessing, line numbers won't match up exactly. We're working on a fix.
In file included from <BUILD>\c23.cpp:31:
C:\Users\Scott\Documents\Development\maple-ide-0.0.12-windowsxp32\libraries\AudioCodec_Maple/AudioCodec_Maple.h:6: warning: multi-line comment
c:/users/scott/documents/development/maple-ide-0.0.12-windowsxp32/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-abort.o): In function
abort':abort.c:(.text+0xa): undefined reference to `_exit'
c:/users/scott/documents/development/maple-ide-0.0.12-windowsxp32/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-signalr.o): In function `_kill_r':
signalr.c:(.text+0x18): undefined reference to `_kill'
c:/users/scott/documents/development/maple-ide-0.0.12-windowsxp32/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-signalr.o): In function `_getpid_r':
signalr.c:(.text+0x0): undefined reference to `_getpid'
collect2: ld returned 1 exit status`
Fix: Located in thread http://forums.leaflabs.com/topic.php?id=161 - replace 0.0.12 util.c (in hardware\leaflabs\cores\maple) with the following version: https://github.com/leaflabs/libmaple/blob/c4e08477202d31149510262a1fd52a09e3e71337/libmaple/util.c