so i'm trying to use a thread in my program and i'm using code::blocks and it doesn't work giving my the error: 'thread' was not declared in this scope.
now i change the settings of the compiler to support c++11,
and from my searches around the web the only solution i found was that i need
to change the MinGW, and since i'm a beginner i don't know what it means snd how to change it even though a lot of time searching the web.
the error shows in the (thread t1 (kkk);) line.
the reason there so many includes is because i'm not showing all the program
and i need them later.
thank you
I want to add that Code::Blocks doesn't install MingW to it's default location on Windows. It actually keeps a copy of it within it's own Program Folder so simply installing the latest MingW isn't enough to fix this. You will need to either copy over the existing installation (bad solution) or create another compiler profile on C::B pointing to the latest MingW and its tool chain (correct solution).