Citar
gcc Agenda.c
/tmp/ccL3qioR.o: In function `main':
Agenda.c:(.text+0x7b): undefined reference to `data_new_write'
collect2: ld returned 1 exit status
/tmp/ccL3qioR.o: In function `main':
Agenda.c:(.text+0x7b): undefined reference to `data_new_write'
collect2: ld returned 1 exit status
Parte del code:
Código
... void data_new_write(st_p, char *, int *); ... int main(){ ... data_new_write(*user, path, &e); ... } void data_write(st_p P, char *path, int *error){ FILE *f; *error = 0; if(f) else *error = 1; close(f); }