It always produce an error that cant find "unistd.h" why? Any re开发者_JAVA百科medies for this?
Services for Unix ships with various linux related headers (including unistd.h), so you could use that. But that might require to link some of the SFU libraries..
Why? It's just not there. It looks like you try to compile a program that is not portable or you try to port the program to Windows.
unistd.h
is a not a standard header. Probably you find it only on Unix-like systems.
See: Wiki
See Is there a replacement for unistd.h for Windows (Visual C)? for a partial replacement. (If you can add aditional functionality, please do so).
精彩评论