hi
I am using sleep function in a C++ program. when I compile this program using g++.I am getting followong error:
I am using gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
I have also added #include<cstdli b>
still I am getting this error.
How to resolve this error.
Vini7
I am using sleep function in a C++ program. when I compile this program using g++.I am getting followong error:
Code:
g++ samspec.cpp samspecCount.cpp -o samspec samspecCount.cpp: In function `void* Counter_fun(void*)': samspecCount.cpp:26: `sleep' undeclared (first use this function) samspecCount.cpp:26: (Each undeclared identifier is reported only once for each function it appears in.)
I have also added #include<cstdli b>
still I am getting this error.
How to resolve this error.
Vini7
Comment