nightWatcher
nightWatcher

Reputation: 1051

problem with unistd.h in VC++

It always produce an error that cant find "unistd.h" why? Any remedies for this?

Upvotes: 2

Views: 2546

Answers (3)

AShelly
AShelly

Reputation: 35540

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

Upvotes: 0

smerlin
smerlin

Reputation: 6566

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

Upvotes: 3

harper
harper

Reputation: 13690

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

Upvotes: 2

Related Questions