Author Topic: ' mutex ' in namespace ' std ' does not name a type  (Read 608 times)

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 69
' mutex ' in namespace ' std ' does not name a type
« 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?
« Last Edit: August 05, 2017, 10:05:04 pm by Дмитро »

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1581
Re: ' mutex ' in namespace ' std ' does not name a type
« Reply #1 on: August 05, 2017, 11:21:44 pm »
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
« Last Edit: August 05, 2017, 11:23:51 pm by BlueHazzard »

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 69
Re: ' mutex ' in namespace ' std ' does not name a type
« Reply #2 on: August 06, 2017, 03:21:37 pm »
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.
« Last Edit: August 06, 2017, 03:25:14 pm by Дмитро »

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1581
Re: ' mutex ' in namespace ' std ' does not name a type
« Reply #3 on: August 06, 2017, 05:10:41 pm »
you can still post a full rebuild log. Can it be you forget the --std=c++11 compiler flag?