[英]cygwin1.dll missing when compiling c++ with g++
I'm using cygwin and when I'm compiling hello world with gcc somehow the compiler doesn't understand about using std namespaces (some of them are missing), but when I compile with g++ yes they work. 我正在使用cygwin,当我用gcc编译hello world时,编译器不知道如何使用std名称空间(其中有些缺少),但是当我使用g ++编译时,它们可以工作。 But when I click on the helloworld.exe it says that cygwin1.dll is missing.
但是,当我单击helloworld.exe时,它说cygwin1.dll丢失。
Is there anything can I do? 我有什么可以做的吗?
"gcc" is the C compiler - and namespaces are not a part of the C language. “ gcc”是C编译器-名称空间不是C语言的一部分。 "g++" is the C++ compiler, so it will understand namespaces.
“ g ++”是C ++编译器,因此它将了解名称空间。
Try the no-cygwin
option when compiling to produce executables that depend on the mingw runtime instead of the cygwin runtime (which, AFAIR, introduces licencing issues). 进行编译时,请尝试使用
no-cygwin
选项,以生成依赖于mingw运行时而不是cygwin运行时的可执行文件(AFAIR引入了许可问题)。
cygwin1.dll errors could indicate a registry problem, a virus or malware. cygwin1.dll错误可能表明注册表问题,病毒或恶意软件。
Don't download cygwin1.dll. 不要下载cygwin1.dll。 It can be an inappropriate version, or just unsafe.
它可能是不合适的版本,也可能是不安全的版本。 Try to reinstall cygwin (or try mingw32).
尝试重新安装cygwin(或尝试mingw32)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.