libc++ doesn't use C99 features

Markus Wanner markus@bluegap.ch
Wed May 21 20:30:00 GMT 2014


Hi,

trying some C++11 features, I recently figured that Cygwin's libstdc++
does not use C99 features. I.e. c++config.h has the following lines:

/* Define if C99 functions or macros from <wchar.h>, <math.h>, <complex.h>,
   <stdio.h>, and <stdlib.h> can be used or exposed. */
/* #undef _GLIBCXX_USE_C99 */


That in turn disables some C++11 features, so that the following example
fails to compile (due to its use of std::to_string).


#include <iostream>
#include <string>

int main()
{
  std::cout << std::to_string(42L) << std::endl;
  return 0;
}


Is this a known issue?


Regards

Markus Wanner


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 242 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140521/296837b3/attachment.sig>


More information about the Cygwin mailing list