今天编译Linux文件,遇到错误
pthread_mutex_timedlock was not declared in this scope
网上查了下:
原文:http://stackoverflow.com/questions/3414834/gcc-stdthread-not-found-in-namespace-std
Works fine on Linux (g++ -std=c++0x -lpthread
with no additional defines).
However, this thread on Cygwin mailing list suggests that, at least as of 4.4, _GLIBCXX_HAS_GTHREADS was disabled by an autoconf test when building libstdc++ because pthread implementation of cygwin is missing pthread_mutex_timedlock. Perhaps MinGW has the same problem.
Also, this thread on comp.lang.c++.moderated says the same thing. Not supported by the library.
原来Cygwin中gcc gcc-4.4.3以上就开始不支持 pthread_mutex_timedlock
即使加上参数 -std=c++0x -lpthread (在Linux可以正常)也无用
分享到:
相关推荐
fontforge-cygwin_2013_10_07.zip
cygwin下的arm交叉编译工具链,cygwin下的arm交叉编译工具链
windows下eclipse集成cygwin编译android_NDK.doc
Cygwin-setup-x86_64 下载的各位看清楚再下啊 这是64位的
cygwin 交叉编译的 coturn 服务器可以在windows 下运行,包含运行脚本可以直接运行。
exe文件,来自网站https://cygwin.com/,不方便下载这个国外网址的朋友可以下载这个,64位的。 然后可选择清华的镜像https://mirror.tuna.tsinghua.edu.cn/help/cygwin/ 具体操作可以看这两个博客...
Cygwin setup-x86_64.exe The most recent version of the Cygwin DLL is 3.0.7.
cygwin 64 位,支持win10
如果你想在Windows上使用Linux上的环境和命令,比如make,那么使用cygwin-setup-x86_64会非常方便,缺什么就装什么!
cygwin setup-x86_64 2020年1月4日官网下载 cygwin setup-x86_64 2020年1月4日官网下载
CygWin教程——CygWin教程_linux_自己收集的
install kde in cygwin, this is the third part of installation source package.
install kde in cygwin, this is the third part of installation source package.
石器2最新代码,需要MYSQL数据库,CYGWIN环境完整可编译.
修复altera的cygwin在高版本windows上报错的问题
一个很不错的网络模拟仿真环境
Cygwin 安装 基本使用 交叉编译vivi kernel.doc
nfs server using in cygwin
Android NDK 交叉编译工具 Android NDK 交叉编译工具