Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Missing header files
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Missing header files (Read 5534 times)
Decrius
Multiple posting newcomer
Posts: 81
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
Decrius
Logged
Check out my website:
http://www.daevius.com
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.
Logged
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.
Logged
Decrius
Multiple posting newcomer
Posts: 81
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)
Logged
Check out my website:
http://www.daevius.com
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Missing header files