Mail Archives: djgpp/2000/03/06/17:44:39
Hi,
I have these two files (mosqueo.c and kk2.c).
When I try to compile I get the following error:
kk2.c: Error: sizeof applied to an incomplete type.
Can anybody tell me why? And how to avoid it?
/* file 1: mosqueo.c */
void pp();
char dias[]={'3','2','3',0};
int main(){
int rr=sizeof dias;
system("clear"); /* sustituir por system("cls"); en msdos */
pp();
printf("\n---%s---",dias);
printf("---r= %d.\n",rr);
return(0);
}
/* file 2: kk2.c */
extern char dias[];
void pp(){
int kk=sizeof dias; //poner este, o el siguiente (test)
printf("\n***%s***",dias);
printf("***kk= %d.\n",kk);
}
Gorka Urrutia.
gorkau AT geocities DOT com
http://www.geocities.com/g_urrutia/
'
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
- Raw text -