amperka/ino — Issue #13: Trouble with simple includes
Author: shipstar
Created: 2011-12-30 02:49:10+00:00
State: open

I created a bare project using `ino init`, which created a `sketch.ino` file in the src directory. When I run `ino build`, it works as expected.

I added one header file to the src directory, `test.h`, and included it in sketch.ino. When I run `ino build` again, I see the following output:

Searching for Board description file (boards.txt) ... /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/boards.txt
Searching for Arduino lib version file (version.txt) ... /Applications/Arduino.app/Contents/Resources/Java/lib/version.txt
Detecting Arduino software version ... 1.0 (1.0)
Searching for Arduino core library ... /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino
Searching for Arduino standard libraries ... /Applications/Arduino.app/Contents/Resources/Java/libraries
Searching for Arduino variants directory ... /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/variants
Searching for avr-gcc ... /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc
Searching for avr-g++ ... /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++
Searching for avr-ar ... /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar
Searching for avr-objcopy ... /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-objcopy
Scanning dependencies of src
.build/src/sketch.cpp:2:18: error: test.h: No such file or directory
make: *** [.build/src/dependencies.d] Error 1
src/sketch.cpp
.build/src/sketch.cpp:2:18: error: test.h: No such file or directory
make: *** [.build/src/sketch.o] Error 1

Here is my complete code (both files in the src directory), just for reference:

**sketch.ino**

```c
#include "test.h"

void setup()
{
}

void loop()
{
}
```

**test.h**

```c
// empty
```