[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g++3.0.3 can't do with sleep()
From: |
strube |
Subject: |
Re: g++3.0.3 can't do with sleep() |
Date: |
25 Jan 2002 16:53:55 GMT |
User-agent: |
tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (SunOS/5.7 (sun4u)) |
James Shen <address@hidden> wrote:
> I think this is a bug for g++3.0.3 (Solaris). I downloaded a package
> of G++3.0.3
> and compiled it on my solaris2.6 (SPARC). After installation, I test
> it
> by a little program as below
>
> //test.cc
> #incldue <stdio.h>
> #include <unistd.h>
>
> main() {
>
> printf("this is a test for g++3\n");
> sleep(5);
> printf("succeed!\n");
>
> }
>
> I compile it using g++ , but it always shows :
>
> test.cc: In function `int main()':
> test.cc:9: `sleep' undeclared (first use this function)
> test.cc:9: (Each undeclared identifier is reported only once for each
> function it appears in.)
This works for me without any message in Solaris 7.
--
Hans Werner Strube address@hidden (remove .XPAM)
Drittes Physikalisches Institut, Univ. Goettingen
Buergerstr. 42-44, D-37073 Goettingen, Germany