今は日! From: masami <[EMAIL PROTECTED]>
> on 07/29/06 08:11, Danai SAE-HAN (韓達耐) wrote: > > > If any if you could help me why test.c crashes on my computer and not > > on any other (i386) computer, I would be very grateful, since I'm no > > programmer. > > > simply, you should include time.h instead of sys/time.h. > also I recommend use -Wall option when you build programs. > > if you use this option, you can notice what wrong. > [EMAIL PROTECTED]:~]% gcc -Wall test.c > test.c:6: warning: return type of ‘main’ is not ‘int’ > test.c: In function ‘main’: > test.c:8: warning: implicit declaration of function ‘ctime’ > test.c:8: warning: format ‘%s’ expects type ‘char *’, but argument 2 has > type ‘int’ Thank you! It works like a charm. May I also ask you why exacty sys/time.h and time.h are so different? They are both part of libc6-dev, I see. どうも有難うり御間す。 Danai SAE-HAN 韓達耐 -- 题目:《襄邑道中》 作者:陈与义(1090-1138) 飞花两岸照船红,百里榆堤半日风。 卧看满天云不动,不知云与我俱东。 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

