This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/3287: usleep() undeclared



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]