|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: Mar 2006
Messaggi: 131
|
[C]durante la compilazione-->error:ridefinition of....?
ho fatto un file matrice.h con definite le intestazioni di funzioni+una typedef struct sul tipo di dato matrice e un matrice.c dove implemento le funzioni
un file creadafile.c con un main dove includo i due file precedenti e testo mano a mano le funzioni vado a compilare quest'ultimo e dà questi errori qua,avete un idea su cosa possa essere successo? In file included from matrice.c:5, from creadafile.c:6: matrice.h:5: error: redefinition of ‘struct matrice’ matrice.h:9: error: redefinition of typedef ‘t_nmat’ matrice.h:9: error: previous declaration of ‘t_nmat’ was here sembra che per lui abbia ridefinito la struct da qualche parte,ma vi assicuro di tipi ce n'è uno solo e prima su altri main di prova non ha mai dato problemi... grazie mille. |
|
|
|
|
|
#2 | |
|
Senior Member
Iscritto dal: Nov 2005
Città: TO
Messaggi: 5206
|
Quote:
__________________
Andrea, SCJP 5 (91%) - SCWCD 5 (94%) |
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 19:51.




















