adityanagal / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

IDE needs space between #include and the file #975

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Making a sketch with #include<file.h>
2. Compliing

What is the expected output? What do you see instead?
Expected: Compiling correctly
Actual: fatal error: Servo.h: No such file or directory

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
1.0 and the newest github version
Arch Linux (gnu/linux)
board: uno

Please provide any additional information below.
When using a Makefile and telling it to link in Servo, it compiles correctly. 
Not including a space compiles with both avr-gcc and gcc

Fix: too simple to do a patch
Change this line in preproc/PdePreprocessor.java:
String importRegexp = "^\\s*#include\\s+[<\"](\\S+)[\">]";
to this:
String importRegexp = "^\\s*#include\\s*[<\"](\\S+)[\">]";

Original issue reported on code.google.com by dunlapa...@gmail.com on 4 Jul 2012 at 4:42

GoogleCodeExporter commented 9 years ago
solution for windows?? ty

Original comment by rate...@gmail.com on 4 Jul 2012 at 7:11

GoogleCodeExporter commented 9 years ago
That solution is cross platform. You just need to make the change and recompile 
the IDE

Original comment by dunlapa...@gmail.com on 5 Jul 2012 at 5:25

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/e945d091c5c158c59dcfdbb61391065e3a0a13
18

Original comment by dmel...@gmail.com on 15 Jul 2012 at 1:44