אז ב file.h אני שם את כל השיטות. השאלה איפה אני שם את הtypdef ואת ה structים.
ו-ב main.c ו ב file.c אני עושה אינקולד ל file.h.אם אני שם את הtypedef ואת ה structים ב file.h
שאני מקמפל אני מקבל שגיאה:
./set.o:(.data+0x0): multiple definition of `mats'
./main.o:(.data+0x0): first defined here
./set.o:(.data+0x40): multiple definition of `cmd'
./main.o:(.data+0x40): first defined here
collect2: ld returned 1 exit status
make: *** Error 1
אני טועה ? אם כן, איפה לשנות. אם לא, למה יש לי שגיאה קומפליציה ?
