This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3287: usleep() undeclared
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3287: usleep() undeclared
- From: f dot bettoni at saritel dot it
- Date: 20 Jun 2001 11:09:57 -0000
- Reply-To: f dot bettoni at saritel dot it
>Number: 3287
>Category: c++
>Synopsis: usleep() undeclared
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 20 04:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: f.bettoni@saritel.it
>Release: gcc3.0
>Organization:
>Environment:
Digital UNIX 4.0d
>Description:
The following code doesn't compile with g++ usleep.cc
#include <unistd.h>
int main (int ac, char **av)
{ usleep (10); }
usleep.cc: In function `int main(int, char**)':
usleep.cc:3: `usleep' undeclared (first use this function)
usleep.cc:5: (Each undeclared identifier is reported only once for each
/usr/local/lib/gcc-lib/alpha-dec-osf4.0d/3.0/include/unistd.h is used preprocessing and usleep() is not defined inside
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: