Lucas Lellis
Lucas Lellis

Reputation: 43

Error creating std::threads in Ubuntu 13.10 x64 C++11

I don't know what is happening in my Ubuntu 13.10. All my functions using std::threads are throwing the error message :

terminate called after throwing an instance of 'std::system_error'
what(): Operation not permitted Aborted (core dumped)

This same program works perfectly in Ubuntu 13.04 64 and 32 bits... I didn't change the g++ parameters in the Makefile.. It seems to be a bug of Ubuntu 13.10 x64..

Can anyone help me?

( Sorry for my bad English )

Upvotes: 1

Views: 348

Answers (1)

Bo M. Petersen
Bo M. Petersen

Reputation: 230

You are most likely missing the -phtread switch when compiling. If you link in a seperate step you need to add the switch -lpthread to you commandline.

Upvotes: 1

Related Questions