This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fgoujeon
Recipients fgoujeon
Date 2008-07-02.14:42:41
SpamBayes Score 0.0034681517
Marked as misclassified No
Message-id <1215009763.56.0.986428726612.issue3257@psf.upfronthosting.co.za>
In-reply-to
Content
Hello all,

I'm using MinGW 4.2.1 and was unable to compile my code when including
pyconfig.h.

The culpables are these lines (from line 428):

/* Define to `int' if <sys/types.h> doesn't define.  */
#if 1 //_MSC_VER + 0 >= 1300
/* VC.NET typedefs socklen_t in ws2tcpip.h. */
#else
#define socklen_t int
#endif

MinGW (at least the version I use) typedefs socklen_t too, in ws2tcpip.h
(at line 272):
typedef int socklen_t;

When the #define takes effect, code becomes:
typedef socklen_t socklen_t;

...which leads to a compile error (really hard to understand):
C:/MinGW/include/ws2tcpip.h:272: error: multiple types in one declaration


I hope these details will be useful for you. I'm available for another
questions.

Thanks!
History
Date User Action Args
2008-07-02 14:42:44fgoujeonsetspambayes_score: 0.00346815 -> 0.0034681517
recipients: + fgoujeon
2008-07-02 14:42:43fgoujeonsetspambayes_score: 0.00346815 -> 0.00346815
messageid: <1215009763.56.0.986428726612.issue3257@psf.upfronthosting.co.za>
2008-07-02 14:42:42fgoujeonlinkissue3257 messages
2008-07-02 14:42:41fgoujeoncreate