From: Damian R. S. <da...@pr...> - 2002-05-01 00:06:25
|
Thanks Guenter but now I get the message: implicit declaration of function 'int _sleep(...)' instead of the previous: implicit declaration of function 'int sleep(...)' ???? Ah! Of course (just in case), by 'wingw' what I really meant was 'mingw'!!! Damian. On Tue, 30 Apr 2002 min...@li... wrote: > --__--__-- > > Message: 3 > Date: Tue, 30 Apr 2002 02:44:24 +0200 > From: =?ISO-8859-1?Q?G=FCnter_Knauf?= <ef...@gm...> > Reply-To: =?ISO-8859-1?Q?G=FCnter_Knauf?= <ef...@gm...> > To: min...@li... > Subject: Re: [Mingw-users] can't sleep! > > Hi Damian, > this is what I often use in my programs: > > #ifdef _WIN32 > #define strupr _strupr > #define strncasecmp _strnicmp > #ifdef __GNUC__ > #define sleep(t) _sleep(t*1000) > #define kbhit _kbhit > =2E.. > > Guenter. > > > Is there any problem with unistd.h and wingw g++? > > > Every time I call sleep() I get the following message: > > implicit declaration of function 'int sleep(...)' > > > The same code compiles perfectly on linux and dos (with > > djgpp). > > |