-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29.04.2014 10:52, G M wrote:
> Hi Everyone
> 
> I can't build the popular build program ninja with clang++ and mingw.
> 
> The reason is demonstrated by this simple program:
> 
> // wcx.cpp
> 
> #include <string> using namespace std; #include <windows.h> int main() { 
> wchar_t* p = wcschr(L"hello", L'h'); }
> 
> Compiling this program with g++ yields the same problem, all the errors
> are below, results from clang++ are included too.
> 
> g++ -std=c++1y -I/libcxx/include -nostdinc++ wcx.cpp
> 
> 
> If ninja didn't put a using namespace std; in it's includes, the problem 
> would go away, but it does, and in over a year I've had no luck
> convincing them not to put using namespaces in headers and when I
> mentioned it a year ago here it didn't attract any interest.
> 
> On the ninja maintainers side, it is legal, so why should they change it, 
> and who knows what other programs break because it doesn't work.
> 
> So my question is, will mingw be changed to make this program compile by 
> default?
> 

Would changing the prototype help? Something like:

#ifdef NAMESPACES_IN_HEADERS_BREAK_WCSCHR
<one prototype>
#else
<another prototype>
#endif


- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJTYmolAAoJEOs4Jb6SI2Cwf70H/iZXNaVOCwTSnsUJDbKKc5Dn
jT59q1HOLlWasg5bA83ca/UHJB84gXzVzbEsE9Q9JIRurZZzkt65yyPkD+XKvvNi
h9EGw1x9BHEJmxo0V/+AGtZ2eJvHr4UrKcE7NsM5IGh167JWvUCK8WMZmZdu2ADH
rtTbaS+cl6yEsYzCxxlK02OwfZVLgr05VV6ym9xmP9uqdPXhMwA1sv/w7b87aOqv
nycslrVG4tWtFCZfLklD+gYMbcCBUCm19aTdYfKt74CA5cXujhRwD3R9W2fEu0in
gtpXoc8o9zCCOE0AaFWUbsPzzz3ORfthc4xd6umlaZf3Zuu/JwYCgZC1QBxkWQo=
=9YZF
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to