linux每日一练:Enable multithreading to use std::thread: Operation not permitted问题解决
发布日期:2021-08-21 13:18:20 浏览次数:10 分类:技术文章

本文共 360 字,大约阅读时间需要 1 分钟。

linux每日一练:Enable multithreading to use std::thread: Operation not permitted问题解决

在linux在需要使用c++11时会遇到这样的问题。只要在cmake或者makefile中增加 "-std=c++11 -pthread"

1014091-20161014143116718-712276376.png

cmake_minimum_required (VERSION 2.6)PROJECT (threads_tests)SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++11 -pthread")ADD_EXECUTABLE(threads_1 threads_1.cpp)

转载于:https://www.cnblogs.com/langzou/p/5960346.html

转载地址:https://blog.csdn.net/weixin_33720078/article/details/93754480 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:iOS 用runtime封装字典转模型
下一篇:WP开发笔记——页面传参

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年04月21日 02时58分40秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章