Arduino Forum

Forum 2005-2010 (read only) => Software => Development => Topic started by: wolffan69 on Jan 04, 2010, 02:57 am

Title: Can I include a header file that is not a library?
Post by: wolffan69 on Jan 04, 2010, 02:57 am
I am transitioning from programming AVR chips in C to using an Arduino platform.  I used to include header files with the following syntax:

#include "file.h"

instead of a library which would be:

#include <library.h>

If I was just including a header file, I didn't have to create a library with source files.  The header file basically contained definitions that I didn't want to rewrite in the c code every time.

So, in the Arduino environment, can I include a header file that is not part of a library?
Title: Re: Can I include a header file that is not a library?
Post by: Coding Badly on Jan 04, 2010, 07:18 am

If the include file is part of a single Sketch, instructions are here...
http://www.arduino.cc/en/Hacking/BuildProcess

If the include file is meant to be shared by multiple Sketches then...

Title: Re: Can I include a header file that is not a library?
Post by: wolffan69 on Jan 04, 2010, 04:38 pm
Perfect!  Thanks for the reply.  That is exactly what I was looking for.