You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing new toys. A simple thread creation compiles, links and works. Std::async didn't:
#include <thread>
#include <future>
#include <cstdio>
#include <unistd.h>
int thread()
{
printf("Hello from thread\n");
return 0;
}
int main()
{
//std::thread t(thread);
auto fut = std::async(thread);
printf("Hello from main\n");
usleep(100000);
return 0;
}
g++ thread.cpp -athread=native
/Code/adtools-os4-8-20180519-611/bin/../lib/gcc/ppc-amigaos/8.1.0/../../../libstdc++.a(condition_variable.o): In function std::condition_variable::~condition_variable()': /var/lib/jenkins/workspace/native-gcc-8/gcc/repo/libstdc++-v3/src/c++11/condition_variable.cc:46: undefined reference to __gthread_cond_destroy'
The text was updated successfully, but these errors were encountered:
Testing new toys. A simple thread creation compiles, links and works. Std::async didn't:
g++ thread.cpp -athread=native
/Code/adtools-os4-8-20180519-611/bin/../lib/gcc/ppc-amigaos/8.1.0/../../../libstdc++.a(condition_variable.o): In function
std::condition_variable::~condition_variable()': /var/lib/jenkins/workspace/native-gcc-8/gcc/repo/libstdc++-v3/src/c++11/condition_variable.cc:46: undefined reference to
__gthread_cond_destroy'The text was updated successfully, but these errors were encountered: