Web lists-archives.com

Re: [Mingw-users] GCC-4.9.3 is now our current release

> From: Roger Wells <roger.k.wells@xxxxxxxxxx>
> Date: Mon, 29 Feb 2016 10:22:23 -0500
> Do you use pthreads?  Even this fails to compile (tstest.c):
> #include <pthread.h>
> int main (int argc, char **argv)
> {
>     return 0;
> }
> $ gcc -c tstest.c
> In file included from tstest.c:1:0:
> c:\mingw\include\pthread.h:320:8: error: redefinition of 'struct timespec'
>  struct timespec {
>         ^
> In file included from c:\mingw\include\time.h:53:0,
>                  from c:\mingw\include\pthread.h:219,
>                  from tstest.c:1:
> c:\mingw\include\parts\time.h:105:8: note: originally defined here
>  struct timespec
>         ^

This has nothing to do with the compiler, this is a (known) problem
with MinGW headers, for which a solution was published a while ago (I

Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe