最终链接失败:包括windows.h时参数无效 [英] final link failed: Invalid argument when including windows.h

查看:204
本文介绍了最终链接失败:包括windows.h时参数无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows上设置了MinGW和Eclipse with CDT for C ++开发。一切都很好,直到我 #include< windows.h> 。一旦我这样做,我得到链接器错误消息 c:/ mingw / bin /../ lib / gcc / mingw32 / 4.6.2 /../../../ .. /mingw32/bin/ld.exe:final link failed:无效的参数其中开头的路径解析为 C:/MinGW/mingw32/bin/ld.exe



我不知道错误信息尝试告诉我...所以请帮我解密。

解决方案

由于我真的不同意Lol4t0的意见,这是太本地化这里是丑陋的答案:重新安装G ++解决了问题。

我认为这个问题也可能是我可能忘记安装列出的一个部分这里(我从中得到它)第一次...但现在我认识到链接是完全不推荐使用(2005)。所以一个人应该使用另一个。


I have set up MinGW and Eclipse with CDT for C++ developing on Windows. Everything works great until I #include <windows.h>. As soon as I do that, I get the linker error message c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: final link failed: Invalid argument whereby the path at the beginning resolves to C:/MinGW/mingw32/bin/ld.exe.

I have no idea what the error message tries to tell me... so please help me to decrypt it.

解决方案

Since I actually don't agree to Lol4t0's opinion that this is too localized here is the ugly answer: Reinstalling G++ solved the problem.

I think the problem also could have been that I maybe forgot to install one of the parts listed here (where I got it from) for the first time... but now I recognize the link is completely deprecated (2005). So one should use another anyway.

这篇关于最终链接失败:包括windows.h时参数无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆