Web lists-archives.com

Re: [Mingw-users] mingw error: redefinition of 'struct timespec'




G wrote:

> 1 c:\mingw\include\parts\time.h:65:8: error: redefinition of 'struct timespec'
>
>
> 2 c:\mingw\include\pthread.h:320:8: error: previous definition of 'struct timespec'
>
>
> I have seen that this is an error already referenced in postings on stackoverflow and elsewhere but I don't really know
> what the solution would be, without making changes in my source code files.

Easy. Add '-DHAVE_STRUCT_TIMESPEC' to your CFLAGS.


-- 
--gv

------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
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:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe