Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Decrius on December 17, 2006, 02:37:00 pm
-
Hello everyone,
I was trying to make a server/client program. Using this tutorial: http://www.cs.rpi.edu/courses/sysprog/sockets/sock.html
When I set it up like they say, I get error messages about not found header files. This site was so far the only site which had some of the headers downloadable, so I downloaded them and added them, but than it seemed my sys/types.h wasn't complete, or the source code wasn't ofcourse, because it reports that there are syntax errors before u_short and caddr_t. Probably because those aren't defined in types.h I guess.
Anyone has the same problem, or a solution?
Thanks in advance :D
Decrius
-
What compiler are you using? What OS are you on? If you're using windows, try getting MinGW (http://www.mingw.org/download.shtml), and that should solve your problem.
Joseph.
-
That is a unix socket tutorial so if you are on windows and not using cygwin it won't work and if you are *nix system you don't need to download any of the headers. For windows you need to use winsock. Just google for some winsock tutorials.
-
Okay thank you, I will try that.
Btw, Im on windows yes, atm, later I will go to unix, and Im using code blocks ofcourse, thats why I post here ;). (MingW)