Hallo Leute,
erstmal Danke für eure Antworten

Frage: eine header Datei ist doch nur eine Definitionsdatei wo nur drin steht wo welche Variable/ Adresse/ Name steht?
Mein "Code" also nichts spektakuläres xD
main Datei:
===================================================
#include <p18f8722.h>
#include "DisplayInit.xxx"
void main(void)
{
}
===================================================
DisplayInit.xxx Datei:
===================================================
void DisplayInit(void)
{
}
wenn xxx = .c ist, kommt ein Syntax Fehler.
wenn xxx = .h ist, kommt:
Error - could not find definition of symbol 'main' in file 'C:\MCC18\lib/c018i.o'.
Errors : 1
kann in einer .h Datei auch ein "code" stehen, also nicht nur definitonen sondern eine Programm das ausgeführt werden kann?
wenn ja wie kann ich z.B. von main in der DisplayInit.xxx ein routine ansprechen sprich call?
Und warum sind dass dann keine .c Dateien sondern .h?
Besten Dank vorab, und sorry falls ich "komisch" frage
rising
Bitte Code-Tags verwenden!
Stampede