This is the mail archive of the
mailing list for the Cygwin project.
Re: gethostbyname conflicts
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 25 Jul 2012 15:28:32 -0400
- Subject: Re: gethostbyname conflicts
- References: <501046E1.email@example.com>
- Reply-to: cygwin at cygwin dot com
On 7/25/2012 3:20 PM, Bernd Prager wrote:
I am having troubles compiling a boost package due to conflicting declarations:
/usr/include/w32api/winsock2.h:635:33: error: declaration of C function ‘int
gethostname(char*, int)’ conflicts with
/usr/include/sys/unistd.h:238:6: error: previous declaration ‘int
gethostname(char*, size_t)’ here
Can that get fixed?
You want to have a look at the configuration for the Boost package you're
building. It should not be including things from the w32api if it's
building for Cygwin.
If you aren't aware, Cygwin has a Boost package already. If you're
looking for a more current version, you may find you have better luck
using the build scripts for the current Cygwin package as a basis if
you prefer not to wait for the Cygwin maintainer to release an update.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple