lundi 5 janvier 2015

How do i resolve these errors in c++? [on hold]

I wrote my first program using C++11 thread feature, that is build in "eclipse juno"



#include <iostream>
#include <thread>

void thFunc() {
std::cout << "Hi from thread\n";
}

int main() {
std::thread th(&thFunc);
std::cout << "Hi from main!\n";
th.join();
return 0;

}


I find below errors in mingw distribution code:


enter image description here Edit:


After switching to release mode, above error is resolved.


Now, I get the below error:


enter image description here


Aucun commentaire:

Enregistrer un commentaire