Go Down

Topic: Virtual Wire compile error (Read 4026 times)previous topic - next topic

HULK

Jul 18, 2009, 03:42 pmLast Edit: Jul 18, 2009, 03:42 pm by HULK Reason: 1
When i try to compile one of the virtual wire examples from the download library at http://www.open.com.au/mikem/arduino/VirtualWire-1.3.zip
i get following error message, something wrong in the library or could it be just my fault?

Code: [Select]
In file included from C:\Program Files\Arduino\arduino-0015\hardware\cores\arduino/WProgram.h:6,

c:/program files/arduino/arduino-0015/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected unqualified-id before 'double'

c:/program files/arduino/arduino-0015/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'

c:/program files/arduino/arduino-0015/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'

follower

#1
Jul 18, 2009, 05:47 pm
AFAIK it's the same error introduced by a change in Arduino-0015 I'm pretty sure the fix has been covered in the forums.

--Phil.

HULK

#2
Jul 18, 2009, 06:59 pm
Strange is that i have the same error with Arduino-0012 and 0014?

Code: [Select]
In file included from C:\Program Files\Arduino\arduino-0012\hardware\cores\arduino/WProgram.h:6,

c:/program files/arduino/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected unqualified-id before 'double'

c:/program files/arduino/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'

c:/program files/arduino/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'

HULK

#3
Jul 18, 2009, 07:10 pm
Made a search on th error "math.h:439" and found no solution to it, only one post by somebody else that notice the issue.

I also removed the o-file in the library to be sure that it as not that messing up things but no change.

follower

#4
Jul 19, 2009, 10:56 am
Try searching the forums (with Google) for "expected unqualified-id before".

--Phil.

HULK

#5
Jul 19, 2009, 11:25 amLast Edit: Jul 19, 2009, 11:25 am by HULK Reason: 1
Now i got it right.
Adding this to the code before compiling did solve the issue.

Code: [Select]
#undef int
#undef abs
#undef double
#undef float
#undef round

Thanks Phil

mikem

#6
Aug 13, 2009, 12:17 am
You should not see this error with arduino-0016 or later.

HULK

#7
Aug 14, 2009, 09:38 am
Almost works with IDE 16 .
Error code i get is:

Code: [Select]
c:/program files/arduino/arduino-0016/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'

c:/program files/arduino/arduino-0016/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'