Fwd: [Mingw-w64-public] some warning when compiling with mingw-w64 (32 bits)

Vincent Torri vincent.torri at gmail.com
Tue Mar 20 14:52:38 PDT 2012


---------- Forwarded message ----------
From: Ruben Van Boxem <vanboxem.ruben at gmail.com>
Date: Tue, Mar 20, 2012 at 10:16 PM
Subject: Re: [Mingw-w64-public] some warning when compiling with
mingw-w64 (32 bits)
To: mingw-w64-public at lists.sourceforge.net


2012/3/20 Earnie Boyd <earnie at users.sourceforge.net>
>
> On Tue, Mar 20, 2012 at 1:50 PM, Vincent Torri <vincent.torri at gmail.com> wrote:
> > Hey
> >
> > with latest d-bus release (1.4.18) :
> >
> > In file included from dbus-sockets-win.h:36:0,
> >                 from dbus-sysdeps-win.c:49:
> > c:\mingw_efl\mingw-w64-x86_32\bin\../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32/include/winsock2.h:15:2
> > : warning: #warning Please include winsock2.h before windows.h [-Wcpp]
> >
>
> I wonder why it matters?  The mingw.org version of winsock2.h just
> includes windows.h as the first item of business.  Let's ask
> mingw-64-public?


This will cause problems with the fact that windows.h includes
winsock.h (check MSVC headers, you'll find it). Including winsock2.h
after winsock.h (through windows.h for example) will produce double
definition errors.

For reference, see the "note" here:
http://msdn.microsoft.com/en-us/library/ms737629%28VS.85%29.aspx
'Historical reasons'

Ruben
>
>
> --
> Earnie
> -- https://sites.google.com/site/earnieboyd
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


More information about the dbus mailing list