开发者

problem with unistd.h in VC++

开发者 https://www.devze.com 2023-02-07 12:46 出处:网络
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.

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消