Closed
Description
I'll explain the issue with an example (ide 1.6.3, win8):
Install the HID project into /sketchbook/hardware/HID
https://github.com/NicoHood/HID
Restart the IDE
Now select the new board that pops up under tools/boards/leonardo HID Project
Type Consumer.begin() in the empty sketchs setup()
compile the code (Control + R) -> Works fine
Now open the example via File>Sketchbook>hardware>HID>HID>Consumer
It wont compile.
I've tested:
- Add an #error to the Consumer.cpp file -> recognized correct
- Include the file via #include "USB-Core/Consumer.cpp" -> compiling correct.
It seems that the files are not linked correct, maybe due to a subfolder?
The error occurs when:
- Open the example via double click
- Open it via file
It does not occur if you:
- Paste the Code into the window that is opened by the startup
- Or the windows that is generated by a "new sketch" button press
It does not matter which Board was selected at closing.
Temporary workaround for 3rd party developers
Open the examples, mark everything (Ctrl + A) and paste it into a new sketch (Ctrl + V)