Hi there,
I tried to compile a c++ code but got a fatal error.
I should include net/netdb.h into my directory,but i can't find it anywhere.
is there any website to download net/netdb.h??

Recommended Answers

netdb.h is part of the standard Unix (and indeed, Linux and various BSDs). If you're using windows, then you also don't have the library it uses, so even giving you a copy of netdb.h won't help. Windows uses the WinSock networking library instead.

Jump to Post

Did you install the winpcap library?

Jump to Post

All 6 Replies

netdb.h is part of the standard Unix (and indeed, Linux and various BSDs). If you're using windows, then you also don't have the library it uses, so even giving you a copy of netdb.h won't help. Windows uses the WinSock networking library instead.

but i'm trying to compile the windump source code,which if for windows!!

Did you install the winpcap library?

yes,i did

Did you add the path to net/netdb.h to your compilers include settings?

i installed winpcap but can't find net/netdb.h to include it!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.