MinGW c++编译器zlib1.dll丢失错误?

MinGW c++ compiler zlib1.dll missing error?(MinGW c++编译器zlib1.dll丢失错误?)

本文介绍了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丢失错误?

基础教程推荐