Including *.inc files

Why can't I #include ".inc" files?

1 Like

Hi @chriscurl. The supported filename extensions for Arduino sketch code files are listed here in the Arduino Sketch Specification:

https://arduino.github.io/arduino-cli/latest/sketch-specification/#additional-code-files

You must use those supported file extensions.

There are many different file extensions you'll find in various corners of the C++ world. Arduino only supports the most prevalent of those for use in sketches.

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