Problem with #include

I have a main ino file in my directory:

#include "test.h"
#include "test.ino"

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

I have the two include files referenced in the same directory. When I compile, I get:
test.ino: No such file or directory

This fails in v2.3.2 of the IDE, it fails in v1.8.2 of the IDE, and it fails in Visual Studio Code.

I need help in determining why I can't compile a system with multiple .ino files to share functions. Somebody in the world can.

You don't include ino files. The IDE will join all ino files together for you.

1 Like
  • Are test two files in the same directory as this sketch ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.