Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Дмитро on August 05, 2017, 10:00:11 pm
-
Good all day! Error-D:\Classes\mutex1\mutex1.cpp | 9 | error: ' mutex ' in namespace ' std ' does not name a type | :'(
Something is wrong with my compiler. So far, everything has always been well compiled, worked remarkably well.
Various advice and research problems I accept with joy.
Downloaded D: \ gcc-6.3.0 \ gcc-6.3.0 (gcc-6.3.0.tar.bz2)
It can somehow be connected in the right places?
Is not it necessary to compile something at first?
In general, I imagine the steps of correcting the problem rather poorly. What additional libraries are available?
-
as always question about compiling we need a full build log:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
in general this does not seems to be a problem with codeblocks, but with the compiler so i think this is the wrong forum to ask this kind of question (we only support codeblocks and not the compiler) but post a full build log first...
also:
google first result: https://stackoverflow.com/questions/14191566/c-mutex-in-namespace-std-does-not-name-a-type
this is probably your problem?
https://stackoverflow.com/questions/27939393/getting-error-mutex-in-namespace-std-does-not-name-a-type-in-mingw-mysys-pr
-
Yes, thank you very much for clarifying!
Yes, I see, it seems, a problem with the compiler.
Precisely, for certain with the compiler some problems.
So I'll try to compile gcc-6.3.0.
If I understand correctly, I will need to compile it using msys, surely it.
Msys I have, but I've never, before any successful compilation of it, never before complex
Never before did compilation fail.
I now measure, in general, this problem.
-
you can still post a full rebuild log. Can it be you forget the --std=c++11 compiler flag?