MinGW c++ compiler zlib1.dll missing error?(MinGW c++编译器zlib1.dll丢失错误?)
问题描述
我刚刚开始为学校学习 C++,我正在尝试下载编译器 MinGW 来编译我的源代码.但是,每次我尝试编译程序时都会出现一条错误消息,指出缺少 zlib1.dll
.
I have just started to learn C++ for school, and I'm trying to download the compiler MinGW to compile my source code. However, every time I try to compile a program an error message shows up saying that zlib1.dll
is missing.
这是错误信息
程序无法启动,因为您的计算机缺少 zlib1.dll
the program can't start because zlib1.dll is missing from your computer
我尝试安装/重新安装但没有成功.我不知道这里有什么问题?
I have tried installing/re-installing with no luck. I don't know what's the problem here?
任何人都可以帮我解决这个问题,因为我有一些功课需要做,但我不能没有编译器.
Can anyone please help me with this problem as I have some homework that I need to do but I can't without the compiler.
谢谢.
推荐答案
来自 MinGW 入门一>;可以使用自动 GUI 安装程序助手或使用 mingw-get(作为MinGW 安装管理器"安装),可用于安装其他库和管理依赖项.对于缺少的 zlib 库,根据需要添加 mingw32-libz 库.
From the MinGW getting started; an automated GUI installer assistant, or use mingw-get, is available (installed as "MinGW Installation Manager") and can be used to install additional libraries and manage dependencies. For the missing zlib libraries, add the mingw32-libz libraries as required.
之前在超级用户上似乎存在问题.您似乎可以直接从 zlib 网站获得它们.Open Babel 有一些关于它的信息需要在之后复制(连同其他一些 dll).
It seems to have been an issue previously here on super user. It seems you may be able to get them directly from the zlib website. Open Babel has some info on it being required to be copied afterwards (together with some other dlls).
替代方案包括使用 nuwen 或 mingw-w64 发行版a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/" rel="nofollow noreferrer">mingw-builds.我从来没有遇到过任何问题.它们还支持 x64 构建.
Alternatives include using the mingw-w64 distros from nuwen or mingw-builds. I've never had any issue getting these up and going. They also support x64 builds.
这篇关于MinGW c++编译器zlib1.dll丢失错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:MinGW c++编译器zlib1.dll丢失错误?
基础教程推荐
- Windows Media Foundation 录制音频 2021-01-01
- 管理共享内存应该分配多少内存?(助推) 2022-12-07
- 为 C/C++ 中的项目的 makefile 生成依赖项 2022-01-01
- 使用从字符串中提取的参数调用函数 2022-01-01
- 如何使图像调整大小以在 Qt 中缩放? 2021-01-01
- 从 std::cin 读取密码 2021-01-01
- 如何在不破坏 vtbl 的情况下做相当于 memset(this, ...) 的操作? 2022-01-01
- 为什么语句不能出现在命名空间范围内? 2021-01-01
- 如何“在 Finder 中显示"或“在资源管理器中显 2021-01-01
- 在 C++ 中循环遍历所有 Lua 全局变量 2021-01-01