i am trying to write a client program.while compilng this program i receave such an error
"u_long undeclared" altough sys/types.h is included what should i do?
where can i find sys/types.h?
i am trying to write a client program.while compilng this program i receave such an error
"u_long undeclared" altough sys/types.h is included what should i do?
where can i find sys/types.h?
-mayfda-
What OS? What Compiler???
Open this file and try to locate where this datatype has been defined. If it is not there, typedef yourself this datatype in your program.
If it's on UNIX, it's usually in /usr/include/ directory.
Which compiler/OS are you using (linux)?
I think u_long is the same as unsigned long.
Add the following line on the top of your code:
Code:typedef unsigned long ulong;