Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2008 Missing C/C++ Header Files

So, I'm working on some network programming in C, and it would seem that I am missing a bunch of standard C/C++ header files. For example, sys/socket.h is not there. A few otheres are missing too like netdb.h, and unistd.h. Is there a pack I need to install to get these on windows?

Thanks

like image 336
The.Anti.9 Avatar asked Nov 18 '25 22:11

The.Anti.9


1 Answers

All these headers are from POSIX, not ANSI C, or ISO C++. You won't find them in Windows without installing some sort of compatibility layer, like Cygwin, or porting your application to Windows API, or use some macros and wrappers to map similar functions (i.e. #define strtok_r strtok_s).

like image 112
Alex B Avatar answered Nov 21 '25 13:11

Alex B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!