Go Down

Topic: Stray ## (Read 3087 times) previous topic - next topic

elf

I'm getting the following error when compiling the sketch found here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1209736981

error: stray '##' in program In function 'void setup()':
In function 'void loop()':
In function 'void __vector_13()':
In function 'long unsigned int buttoncode(byte)':
In function 'void brand(byte)':
In function 'uint8_t timer2top(unsigned int)':
In function 'void setchannel(byte)':
Bad error line: -8

There don't appear to be any stray ## :) Any ideas how to find the error?

wayoda

Hi,
Quote

I'm getting the following error when compiling the sketch found here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1209736981

the website is gone and so is the code.

Eberhard

elf

It can also be found here: http://www.netstuff.org/olympus/arduino/firmware/

programmer

Looks like the problem is the first line from the error:

Line 1 -##main.pde

Remove it and see if it then compiles

mem

#4
Sep 28, 2009, 11:01 am Last Edit: Sep 28, 2009, 11:02 am by mem Reason: 1
I expect the problem is in the .h file - make sure that every #define in the .h file is at the beginning of a new line. The file on the website may have lost some formatting

elf

I tried that earlier and it failed with a message about macros. I've just retried it and it failed at #include "irparams.h" so I commented this out and used the menu to include it.  The program compiles now.  

Thanks for your help.


p.s. I was using Arduino v-0012 when it failed earlier, but installed v-0017 this evening.

Go Up