Closed GoogleCodeExporter closed 9 years ago
I think you can put your code in a .cpp file, and it will no longer get the
transformations you complain about. (Leave a skeleton structure in your .ino
file to make the IDE happy.)
Original comment by wes...@gmail.com
on 14 Nov 2012 at 9:25
Thanks! That's good enough for me. Close if you wish.
Original comment by o...@wanadoo.es
on 14 Nov 2012 at 9:49
Cool. As westfw says, we usually suggest that if you want untouched C++ code
to write it in a separate .cpp file in your sketch.
Original comment by dmel...@gmail.com
on 14 Nov 2012 at 2:02
BTW, maybe it is a good idea to mention the possibility of using .cpp files on
this section of the troubleshooting guide:
http://arduino.cc/en/Guide/Troubleshooting#toc22
It explains what the problem is, but gives little advice on solving the it.
Using a .cpp file is a definitive solution (except for those beginners who
don't know what a function prototype is.)
Original comment by o...@wanadoo.es
on 14 Nov 2012 at 6:33
Original issue reported on code.google.com by
o...@wanadoo.es
on 14 Nov 2012 at 9:18