This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Pthreads: Prototypes missing if -std=c11


On 2017-07-12 11:15, bz0815@tirol.com wrote:
> gcc does not recognize some functions from pthread.h if option -std=c11 is used:

Exactly, and the same happens with glibc.  When you use -std=c*, that
means you are declaring strict ISO C, and all extensions are disabled by
default unless explicitly enabled (e.g. with -D_POSIX_C_SOURCE=200112L).
 If you are not compatible with ISO C, then you should be using
-std=gnu* instead.

-- 
Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]