[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wftodm segfaults on AMD64



今は日!

From: masami <masami256@gmail.com>

> 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.
> [masami@moon:~]% 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)

飞花两岸照船红,百里榆堤半日风。
卧看满天云不动,不知云与我俱东。



Reply to: