hi
Sorry if my question sounds stupid but i can't find an answer anywhere.
I have the winavr installed and i create my projects using AVR studio (4.16).
I usually use header/source library's , for example lcd.h and lcd.c .
I include the header file lcd.h in the start of my source code (.h and .c located in the project folder and i use #include "lcd.h") but when i try to use a function it says "undefined reference".
The only way it works is if i include both files (#include "lcd.h" #include "lcd.c") but I'm sure that this is the wrong way.
I have tried to see examples but unfortunately they were made with winavr (not as a avr studio project) and they use a make file which has the .c sources included from there.
All i see in the avr project configuration options is
include directories, library search path and they don't seem to help.
I have also tried to add the file to source files, external dependencies, other files (to the left folder tree in AVR studio) but nothing works.
Thank you
Alex