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.

Nick Gammon
  • 38,184
  • 13
  • 65
  • 124
Cerin
  • 1,618
  • 2
  • 24
  • 41

1 Answers1

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.

Majenko
  • 105,095
  • 5
  • 79
  • 137
  • 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