when i try to compile things i always get the error:
sys/socket.h: No such file or directory.
netinet/in.h: No such file or directory.
arpa/inet.h: No such file or directory.
netdb.h: No such file or directory.
Can someone plz help me?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You get an error because Dev-C++ is a windows compiler, and the source code you are trying to compile is written for Unix/Linux. You have 3 options: either try to convert the functions from Unix Sockets to the Winsock method (it isn't that hard if you know one or the other), compile it on Unix like it's supposed to be, or download the Cygwin compiler package and shell or whatever the hell you need. Cygwin is designed specifically to compile and port Unix code to Windows, so it has those headers you are looking for. Ask Wayne for further details, I haven't used Cygwin in like a year, and even then I didn't use it in detail - I had just decided to wait until I had switched to Linux.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Note that Cygwin is a big installation. A full installation of Cygwin is about 600+ megabytes.
You download a progran, called setup, which will let you pick which packages you need. Note that by default, a "minimal" package of tools, that does not include the gcc compilers, is downloaded. I recommend you do a full install to start.
The current version of GCC used by Cygwin is, I believe gcc-3.3-1
I am sure you will have more questions...I'll do my best to help....
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When setting things up, I create a directory called something like:
c:\cygtemp
and download setup into that directory. I run it from there. This cygtemp directory is a tempoarary directory into which files are placed by the installer. I let cygwin install where it wants, usually c:\cygwin
As with Dev, even more so, avoid spaces in path names...
Once you are setup, I can give you the commands to use rxvt as a terminal..
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-11-03
Moving to cygwin just to be able to use BSD sockets code is probably unnecessary. Windows Sockets asre base on BSD and porting code is easy.
Hi,
when i try to compile things i always get the error:
sys/socket.h: No such file or directory.
netinet/in.h: No such file or directory.
arpa/inet.h: No such file or directory.
netdb.h: No such file or directory.
Can someone plz help me?
You get an error because Dev-C++ is a windows compiler, and the source code you are trying to compile is written for Unix/Linux. You have 3 options: either try to convert the functions from Unix Sockets to the Winsock method (it isn't that hard if you know one or the other), compile it on Unix like it's supposed to be, or download the Cygwin compiler package and shell or whatever the hell you need. Cygwin is designed specifically to compile and port Unix code to Windows, so it has those headers you are looking for. Ask Wayne for further details, I haven't used Cygwin in like a year, and even then I didn't use it in detail - I had just decided to wait until I had switched to Linux.
thanx chillin. ill ask Wayne.
regards
andreas
Note that Cygwin is a big installation. A full installation of Cygwin is about 600+ megabytes.
You download a progran, called setup, which will let you pick which packages you need. Note that by default, a "minimal" package of tools, that does not include the gcc compilers, is downloaded. I recommend you do a full install to start.
The current version of GCC used by Cygwin is, I believe gcc-3.3-1
I am sure you will have more questions...I'll do my best to help....
Wayne
Here is the link to the Cygwin page:
http://www.cygwin.com/
When setting things up, I create a directory called something like:
c:\cygtemp
and download setup into that directory. I run it from there. This cygtemp directory is a tempoarary directory into which files are placed by the installer. I let cygwin install where it wants, usually c:\cygwin
As with Dev, even more so, avoid spaces in path names...
Once you are setup, I can give you the commands to use rxvt as a terminal..
Wayne
Moving to cygwin just to be able to use BSD sockets code is probably unnecessary. Windows Sockets asre base on BSD and porting code is easy.
See: http://sourceforge.net/forum/message.php?msg_id=1949764
The article I posted is no longer there; anyone interested can ask me for it.
Clifford.