Build issue with aiko_device_potentiometer.pde

24 views
Skip to first unread message

Marc MERLIN

unread,
Jan 28, 2011, 1:20:44 AM1/28/11
to aiko-p...@googlegroups.com
Howdy,

I just acquired a pebble board and got a few examples in
Aiko/examples/pebble
to work.

However, I have had less luck with
Aiko/examples/ examples, like aiko_device_potentiometer.pde

When I build it, with arduino 0022, build fails with:
In file included from
/usr/share/arduino/hardware/arduino/cores/arduino/WProgram.h:6,
from aiko_device_potentiometer.cpp:4:
/usr/lib/gcc/avr/4.3.5/../../../avr/include/math.h:426: error: expected
unqualified-id before 'double'
/usr/lib/gcc/avr/4.3.5/../../../avr/include/math.h:426: error: expected `)'
before 'double'
/usr/lib/gcc/avr/4.3.5/../../../avr/include/math.h:426: error: expected `)'
before 'double'

Oh, I narrowed it down to
#include <AikoDevices.h>

That include creates the problem.
I traced it down to
AikoDevices.h where I commented out wiring.h and things seem to work.
(hardware/arduino/cores/arduino/wiring.h seems to be used from elsewhere though
because if I empty the file, the compile fails differently).

I think I'm ok, but I thought I'd ask if anyone knows why the original
code doesn't work for me as is.

Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/

Marc MERLIN

unread,
Feb 13, 2011, 1:03:52 PM2/13/11
to aiko-p...@googlegroups.com

Just curious: am I the only one with this problem?

If not, is it possible to get the fix in the upstream repo?

Andy Gelme

unread,
Feb 13, 2011, 7:22:02 PM2/13/11
to aiko-p...@googlegroups.com, Marc MERLIN
hi Marc,

On 2011-02-14 05:03 , Marc MERLIN wrote:
> When I build it, with arduino 0022, build fails with:

>> Oh, I narrowed it down to #include <AikoDevices.h>
>>

>> If not, is it possible to get the fix in the upstream repo?

I'll deal with this ... along with the requests from your previous email.

--
-O- cheers = /\ /\/ /) `/ =
--O -- http://www.geekscape.org --
OOO -- an...@geekscape.org -- http://twitter.com/geekscape --

Reply all
Reply to author
Forward
0 new messages