chipKIT® Development Platform

Inspired by Arduino™

problem with isblank() redefintion in current soucre tree.

Created Sat, 25 Feb 2012 07:35:04 +0000 by WestfW


WestfW

Sat, 25 Feb 2012 07:35:04 +0000

I'm having troubles with a recent source download. I have:

commit b5b37f7a77512ca5f8dd6912bacfbfeb97190a7d
Author: Ricklon <rick.rickanderson@gmail.com>
Date:   Mon Feb 20 16:35:35 2012 -0500

    Issue #202 fixes from Gene Apperson applied.

And trying to compile any sketch (after "ant run") results in an error complaining that "isblank()" is getting redefined. I don't see any recent changes in WCharacter.h; is this something that snuck in with a new compiler version?

In file included from /Volumes/Downloads/src/mpide/chipKIT32-MAX/build/macosx/work/mpide.app/Contents/Resources/Java/hardware/pic32/cores/pic32/WProgram.h:16:0,
                 from Blink.cpp:8:
/Volumes/Downloads/src/mpide/chipKIT32-MAX/build/macosx/work/mpide.app/Contents/Resources/Java/hardware/pic32/cores/pic32/WCharacter.h: In function 'boolean isblank(int)':
/Volumes/Downloads/src/mpide/chipKIT32-MAX/build/macosx/work/mpide.app/Contents/Resources/Java/hardware/pic32/cores/pic32/WCharacter.h:45:29: error: new declaration 'boolean isblank(int)'
/Volumes/Downloads/src/mpide/chipKIT32-MAX/build/macosx/work/mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/ctype.h:23:5: error: ambiguates old declaration 'int isblank(int)'