Yep. Moving 'Buntu 13.10 has been nothing short of disastrous. Another thing I've found to be working improperly is threading.
Consider this simple piece of code:
Code:
#include <iostream>
#include <thread>
int main()
{
std::thread t ([]()
{
std::cout << "Hello, World!";
});
t.join();
return 0;
}
Compiled with:
Code:
g++ main.cpp -o main -pthread -std=c++11
That, on 13.10, throws an exception:
Code:
terminate called after throwing an instance of 'std::system_error' what(): Enable multithreading to use std::thread: Operation not permitted
Aborted (core dumped)
... and executes just fine on 13.04. The compiler used in both cases is GCC 4.8.1.
Compiled, and linked against pthread, the same way in both cases.
What's the matter with you, 13.10? What am I doing wrong?
Bookmarks