Greetings,
I've recently moved out of my unix shelter to test a supposedly cross-platform networking library only to discover that mingw doesn't like to be fed c++11 stuff.
I presume that I'm missing the required headers since Win7 doesn't come packed with c++11 support.
It compiles just fine with VS2012
but g++ refuses to.
error: 'thread' in namespace 'std' does not name a type
error: 'mutex' in namespace 'std' does not name a type
The question is:
How do I get a copy of c++11 headers/libs i.e. < thread > without using the ones provided by VS2012 installation.
P.S. #1 I tried mingw-get update but it still wont find < thread >
P.S. #2 I am also using -std=c++11
Sincerely,
Chris.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…