Hi,
I have read the guides on how to structure a sketch over multiple tabs to keep it readable. The problem I have now is that only tabs without extension work (
doB below). Having own .c and .h files doesn't work (
doA below). I keep getting errors that whatever functions I have in an other .c and .h file in the sketch cannot be found in the scope. See screenshot and code below.

This is the code I use.
----
MultiTabSketchExperiment.pde/* Multi-tab sketch experiment.
* Teaching myself tabs in Arduino
*
*/
#include "doA.h"
void setup() {
doB();
}
void loop() {
doA();
}
----------------------------------------
----
doA.h#ifndef DOA_SEEN
#define DOA_SEEN
void doA();
#endif
----------------------------------------
----
doA.c#include "doA.h"
void doA() {
}
----------------------------------------
----
doB.pdevoid doB() {
}
----------------------------------------
This is the error I get when compiling
MultiTabSketchExperiment.cpp.o: In function `loop':
MultiTabSketchExperiment.cpp:19: undefined reference to `doA()'
In conclusion:
- doB() works
- doA() can't be found
- Why?
I'm sure I'm doing something really stupid, but would really appreciate any pointers in the right direction. I am used to programming Java and my memories of C from school are very dim.
Best regards/Anders