腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
pthreads
与
MinGW
的
静态
链接
windows
、
dll
、
static-linking
、
mingw32
、
pthreads-win32
我想
静态
链接
“pthreadforGC2.dll”与我
的
应用程序,用
MinGW
32编译,这样应用程序将不需要pthreadGC2.dll来运行。我使用
的
是
pthreads
2.9.1
的
最新版本,它是从和库下载
的
,包含文件被复制到
MinGW
库和包含目录。顺便说一句,从2.9.1版本(在
pthreads
w32-2.9.1-1-
mingw
32-dll.tar.lzma中)下载
的
pthre
浏览 25
提问于2016-08-30
得票数 4
回答已采纳
1
回答
为什么C++ "Hello World“需要Eclipse Mars中缺少
的
pthread?
eclipse
、
c++11
、
pthreads
、
mingw
我已经运行Eclipse Juno和
MinGW
4.6.2很长一段时间了,但是我需要完整
的
C++11支持,所以我升级到Eclipse Mars并将
MinGW
4.9.3安装在不同
的
目录中。在Mars中,
链接
任何可执行文件--甚至在C++ Hello World项目中--都会导致"C:\
MinGW
_4_9_4\bin...\ld.exe: cannot find -lpthread“。为什么以及如何尝试
链接
到pthread?(我可以把它关掉吗?)
浏览 12
提问于2016-08-26
得票数 1
回答已采纳
1
回答
DLL仅在设置
MinGW
路径时加载。
java
、
c++
、
dll
、
java-native-interface
、
mingw
因此,我得到
的
DLL,MyProgram_Native.dll,是问题
的
中心。 我一直在构建这个程序
的
计算机可以很好地执行插件。它能做我们需要做
的
所有事情,而且效果很好。但是今天我发现,每当我在PATH变量中设置了我
的
MinGW
文件夹时,程序就会找到DLL,并且它可以正常工作。但是当我从PATH变量中删除
MinGW
时,程序找不到DLL,插件也不能工作,并给出了上面的错误消息。我
的
MinGW
路径设置为C:\msys64 64\
M
浏览 6
提问于2022-09-21
得票数 0
1
回答
在windows上使用
MinGW
编译C++时找不到omp.h
c++
、
windows
、
mingw
我正在编写C++代码,并在windows上使用g++、MinGM进行编译,但错误显示:在
MinGW
的
安装文件中找不到omp.h文件:
浏览 12
提问于2016-06-25
得票数 0
1
回答
在Win7中使用
MinGW
中
的
pthread
pthreads
、
mingw
2015-1-20,我在我
的
Win7中使用
MinGW
,尝试用
MinGW
和
Pthreads
编译我
的
源代码。
MinGW
已经支持POSIX线程,在"
MinGW
安装管理器“中,我们可以安装pthread dev包和
pthreads
。但是当我编译我
的
源代码时,出现了一个错误: struct timespec redefinition,首先在pthread.h中,然后在unistd.h中,我不知道为什么。在此之前,实际上我在没有安装pt
浏览 5
提问于2015-01-20
得票数 5
1
回答
不能用openmp编译
c++
、
compilation
、
openmp
<< std::endl; std::cout << "End" << std::endl;我试图用g++ omp.cpp -fopenmp编译上面的代码,但是我得到了错误: co
浏览 9
提问于2015-01-26
得票数 0
回答已采纳
4
回答
找不到-lpthread?
c
、
eclipse
、
pthreads
、
mingw
我下载了面向C/C++开发人员
的
eclipse IDE,
MinGW
。我已经把所有的库、头文件放到了
MinGW
文件
的
相应位置。 当我尝试构建项目时,总是出现错误“找不到-lpthread",发生了什么?
浏览 3
提问于2014-02-17
得票数 5
2
回答
使用cmake
静态
链接
pthread
cmake
、
msys2
如何让CMake在Windows上
静态
链接
pthread?我使用MSYS2
MinGW
32 bit和cmake v3.7。我想要实现
的
是一个编译器调用,比如 g++ -static-libgcc -static-libstdc++ -std=c++11 -o test test.cpp -Wl,-Bstatic -lpthread如果我更改了CMAKE_EXE_LINKER_FLAGS,
pthreads
将包含在我
的
对象文件之前,因此符号不会被解析。
浏览 0
提问于2017-01-27
得票数 3
1
回答
在Code::Blocks中运行OpenMP
c
、
openmp
、
codeblocks
我试图自学使用Windows7
的
OpenMP,但我很难获得代码::块来编译一个基本
的
hello world程序:#include <stdio.h>} 我已经取得了一些进展,但仍然有一个我无法摆脱
的
持久性错误我
的
编译器中有-fopenmp“编译器->编译器设置->其他选项
浏览 1
提问于2013-11-28
得票数 2
1
回答
如何在PHP5.6.13中启用CentOS 6.7中
的
线程?
php
、
pthreads
,我遵循以下步骤: 搜索适当
的
包:yum搜索proper ================================= N/S匹配:
pthreads
===============================
MinGW
32-winpthreads static.noarch.noarch.noarchs:
静态
版本
的
MinGW
Windows线程库
MinGW
64-winpthreadsstatic.noarch.noarchs:
静态
浏览 1
提问于2015-09-17
得票数 1
回答已采纳
1
回答
无法在Windows上用
MinGW
编译google测试
c++
、
windows
、
mingw
、
googletest
我试图在Windows上编译
MinGW
测试框架,但在执行make时遇到了错误cmake -G "MSYS Makefiles" --with-
pthreads
=noCMake Error: The source directory "D:/downloads/googletest-master/googlete
浏览 2
提问于2016-09-17
得票数 0
回答已采纳
1
回答
如何在linux可执行文件中使用
静态
库
c++
、
c
、
linux
、
makefile
我有一个在Linux上编译
的
项目。libevent_core-2.1.so.6 => /usr/lib/x86_64-linux-gnu/libevent_core-2.1.so.6 (0x00007fca87a5e000)现在,我想让这些库编
浏览 3
提问于2018-10-03
得票数 0
回答已采纳
7
回答
如何为x64编译
静态
pthread-win32lib?
c++
、
c
、
windows
、
64-bit
、
pthreads
似乎已经做了一些工作来使
与
x64一起工作,但没有构建说明。我尝试过使用Visual Studio交叉工具命令提示符进行简单
的
构建,但是当我尝试从x64应用程序
链接
到x64时,它看不到任何函数导出。我甚至尝试在适当
的
位置将/MACHINE添加到makefile中,但无济于事。有没有人把这个弄好了?
浏览 2
提问于2008-10-01
得票数 5
回答已采纳
1
回答
mingw
% ld找不到搜索路径中存在
的
某些库
c
、
gcc
、
mingw
、
ld
我使用
的
是vim+
mingw
,不知何故,终端仍然是窗口命令。我找到了,想试试winpty。但是当我编译它
的
时候,它就出来了:Linking ../
mingw
/share/doc/
pthreads
-w32 /
mingw
/share/doc/
pthreads
-w32/2.9
浏览 0
提问于2014-02-06
得票数 3
1
回答
如何为Qt安装和安装
MinGW
4.6?
qt
、
installation
、
mingw
我一直在寻找关于如何安装和安装QT4.7
的
MinGW
4.6
的
精确说明,但没有结果。我不知道我要抓取哪些
MinGW
4.6包,以及如何设置它们。Qt似乎在Creator2.1.0中提供了
MinGW
4.4
的
“自定义”版本,因此我很难在此基础上做出准确
的
猜测。以前有人这样做过吗?我需要哪些包裹? 谢谢。
浏览 3
提问于2011-05-16
得票数 0
3
回答
编译时-pthread
与
-lpthread
的
区别
multithreading
、
gcc
、
thread-safety
、
pthreads
、
compiler-flags
编译多线程程序时使用
的
gcc -pthread和gcc -lpthread有什么不同?
浏览 0
提问于2014-04-24
得票数 134
回答已采纳
2
回答
在Linux上交叉编译和
mingw
for Win
c
、
pthreads
、
mingw
我试着编译一个简单
的
线程程序,以便在上获得胜利。make[1]: Verlasse Verzeichnis '/mnt/prog/
pthreads
' x86_64-w64-
mingw
32-gcc -c .是否将unistd.h包含在windows目标中是错误<e
浏览 5
提问于2013-09-23
得票数 1
2
回答
一定要在
MinGW
环境下使用pthread库来编译多线程程序吗?
multithreading
、
class
、
mingw
、
pthreads-win32
一定要在
MinGW
环境下使用pthread库来编译多线程程序吗?我在TrueStudio中看到,头文件在集成
的
MinGW
中声明了_ beginthreadex函数。但在程序
的
运行中有一个例外。Use the underscore._CRTIMP __cdecl __
MINGW
_NOTHROW _CRTIMP __cdecl __
MINGW
_
浏览 88
提问于2021-06-29
得票数 0
回答已采纳
2
回答
MinGW
5.3.0-2不工作
c++
、
windows
、
c++11
、
mingw
、
codeblocks
\Debug\main.oc:/
mingw
/bin/../lib/gcc/
mingw
32/5.3.0/../../../..second(s))注意:如果我检查-std=c++11或-std=c++14标志,就
浏览 6
提问于2016-08-26
得票数 3
回答已采纳
5
回答
我能让Unix
的
pthread.h在Windows中编译吗?
c
、
windows
、
multithreading
、
pthreads
我使用
的
是Vista和最新
的
MinGW
。 我不想使用Microsoft Windows Services for UNIX版本3.5,因为我必须将其移动到Unix环境。
浏览 2
提问于2010-01-28
得票数 64
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
腾讯会议
活动推荐
运营活动
广告
关闭
领券