Author Topic: Missing header files  (Read 4489 times)

Offline Decrius

  • Multiple posting newcomer
  • *
  • Posts: 81
    • Daevius
Missing header files
« 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
Check out my website: http://www.daevius.com

Offline jpaterso

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: Missing header files
« Reply #1 on: December 17, 2006, 06:29:40 pm »
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.

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Missing header files
« Reply #2 on: December 17, 2006, 06:49:00 pm »
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.

Offline Decrius

  • Multiple posting newcomer
  • *
  • Posts: 81
    • Daevius
Re: Missing header files
« Reply #3 on: December 17, 2006, 07:59:55 pm »
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)
Check out my website: http://www.daevius.com