Hi,
I am trying to add a file to my sketch and get the following error.
Could not createInput() for C:\Users\Marius\Documents\My Projects\Firmware\Arduino\projects\Rewinder\defines.h
java.io.FileNotFoundException: C:\Users\Marius\Documents\My Projects\Firmware\Arduino\projects\Rewinder\defines.h (The system cannot find the file specified)
This happens if the file is there or not.
Another question. How do I determine which file is included first in the sketch? I want to place all the defines in a separate file to unclutter the code.
Paul,
The code is included on the post. I can see it. You are not being helpful at all. I am using the Processing IDE for Arduino. I get an error if I include any file other than an PDE file.
Well, I can't. All I can see is an error message that makes no sense without the code that generated the error.
You are not being helpful at all.
I can't help you if you don't post code in a way that I can see it. Sorry about that.
I am using the Processing IDE for Arduino.
There is a Processing IDE and an Arduino IDE. The Arduino IDE is used to program the Arduino. The Processing IDE is used to develop applications that run on the PC. They are not even remotely interchangeable.
I get an error if I include any file other than an PDE file.
Paul,
I think you misunderstood everything I said from the beginning. Let me explain.
I am using the Arduino IDE (based on the Processing platform).
I have an externally generated file called defines.h that I want to add to the sketch.
There is no code involved in this file, just #defines.
The error that I posted is what happens when I try to add the file.
The rest of the sketch compiles correctly and the code is running, I just want to organize the code in order to make it maintainable.
Make a new tab in the IDE (button on the far-right corner). Call it defines.h. It will open blank. Put your stuff in it. Now compile.
And Paul means you didn't post your (source) file(s). I can't see it/them either. You just posted your error message. He doesn't mean "the error code", he means "the program code".
Nick,
I included the defines.h file at the top of the main file. The compiler cannot find the file. It reports Rewinder.cpp:1:21: error: defines.h: No such file or directory
If I leave the defines in the main file all is well.