0

I'm attempting to compile this simple bounce.ino example with the ino tool, but it's giving me the error:

Bounce2.h: No such file or directory

I've placed it in the same directory as bounce.ino. Why can't it find the header?

Edit: I'm using Ubuntu.

  • What the is the include code you are using? #include "bounce.h"? – Gerben Oct 26 '14 at 13:39
0

What OS are you using?

If you're in Linux (and some OS X installations) you should note that bounce.h and Bounce.h are two completely different files - you need to make sure you have the capitalization the same in your #include directive as the actual file on disk is.

  • This wasn't the exact problem, but you were close. I was doing #include <Bounce2.h>, which seems to only look in the library path where it didn't exist. For local includes, I need to do #include "Bounce2.h". – Cerin Oct 26 '14 at 14:35
  • I was going to suggest that, but then changed my mind as in the normal IDE I think it includes the sketch folder as part of the system paths, so <> and "" have no difference. I guess with inotool it does matter. – Majenko Oct 26 '14 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.