Jump to content
xisto Community
bm_mne

Solaris Gethostbyname dns resolving

Recommended Posts

HelloI am writing small routine that should resolve URL. Using Solaris 8 box and gcc. I nedd to use 'gethostbyname()' function but after linking, I receive message with linking error.Does anyone knows which libraries I should include and which gcc option should be used for compiling?

Share this post


Link to post
Share on other sites

I never had this problem with gethostbyname, though the last time I coded on Slowaris was using gcc 2.95 and gcc 3.1...so, if you're using a newer version of GCC I can't really speak for why it doesn't work.What linker options are you passing to GCC to compile it? Sounds a little bit like the linker is resolving the wrong library and linking it. I can see problems happening when you link a non-gnu library and expect it to behave like it's gnu counterpart.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.