Sys headers - running Linux C code on windows

Hi All,

I wanted to run a small socket application written in C on windows.

The code was written for GNU/linux..the compiler on windows CodeBlocks complains about the sys headers.

is there an equivalent for windows ?

I cannot see your computer from here.

Please post your code.

It's sometimes possible for socket code to work in Windows if sockets are used in an extremely specific and rather limited way but more often separate code is written for each.

The code I was trying to run is taken from this webpage.

i did not paste the code here as its wrapping & difficult to read.

You can easily post code here by using code tags,

```text
stuff
```
[/code]

.

If you wanted to compile unmodified UNIX code under Windows you could use cygwin.

1 Like

Ok Corona..I will try what you suggested.