c++ g++运行出现Enable multithreading to use std::thread: Operation not permitted解决

2021-04-06 04:27

阅读:415

标签:operation   called   mit   term   mina   ble   row   perm   use   

使用了c++11的thread库,运行出现了:

terminate called after throwing an instance of ‘std::system_error‘

  what():  Enable multithreading to use std::thread: Operation not permitted

Aborted

 

解决:g++ -std=c++11 -pthread -Wl,--no-as-needed thread_test.cpp

c++ g++运行出现Enable multithreading to use std::thread: Operation not permitted解决

标签:operation   called   mit   term   mina   ble   row   perm   use   

原文地址:https://www.cnblogs.com/shilipojianshen/p/13402270.html


评论


亲,登录后才可以留言!