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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.