-
inet.h
Hello,
I am using devcpp to compile my C programs.
I am including the file inet.h <arpa/inet.h> but the compiler is returning that the file not found. I tried installing few networking devcpp packages but that didnot help.
Earlier I was compiling in unix and never faced any such error. Can anybody please help.
Thanks,
Ayn
-
Is it that I need to use the winsock libraries instead of the unix libraries?
-
Registered User
Yes, winsock2.h and you probably will need to link ws2_32.lib
-
Hi,
Thanks for the reply.. I just figured that out.. and my program is compiling.. I am not sure if its working though as my ip to int conversion is always returning 0 Guess I need to read some winsock stuffs. Thx.
-
Is there anything else I need to do to use inet_addr() function?
-
Registered User
Show us what you are currently trying to do. Lets not play the guessing game.
Popular pages
Recent additions