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:
Edit:
After switching to release mode, above error is resolved.
Now, I get the below error:
Aucun commentaire:
Enregistrer un commentaire