Reputation:
I am using Xcode and I have just started using the sleep()
function but for some reason Xcode keeps saying Use of undeclared identifier 'sleep'
.
Is there anyway around this? (As you can tell I'm quite new to C++)
Upvotes: 7
Views: 8797
Reputation: 158
This may be because you haven't introduced the unistd.h
header file.
Hope this helps!
Upvotes: 14