Visual Studio 2010链接器问题 [英] Visual Studio 2010 Linker issue

查看:264
本文介绍了Visual Studio 2010链接器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2010中编译VC ++或C ++程序时,出现以下错误.有人可以帮助解决此问题吗?

 ------构建开始:项目:Win32Test,配置:Win32版本------
1)stdafx.cpp
1)Win32Test.cpp
1)/usr/bin/link:无法创建链接到@/ERRORREPORT:PROMPT的链接@@ C:\\ Documents and Settings \\ sivakoyi \\ Local Settings \\ Temp \\ 38228641ba1e4718afce98237c2023f2.rsp
1)C:\ Program Files \ MSBuild \ Microsoft.Cpp \ v4.0 \ Platforms \ Win32 \ Microsoft.Cpp.Win32.Targets(268,5):错误MSB6006:"link.exe"已退出,代码为1.
==========
构建:0成功,1失败,0最新,跳过0
========== 

解决方案

路径"/usr/bin/link"表明您已安装cygwin,并且您的搜索路径使Visual Studio 2010在Visual Studio链接器之前找到cygwin链接器.
解决方案:
-重新排列您的搜索路径
-或肮脏地重命名cygwin链接器,以便Visual Studio找不到它.


不生成清单文件,我认为更改清单设置可以解决您的问题.

I am getting following error when I compile VC++ or C++ program in Visual Studio 2010. Can somebody help on this issue?

------ Build started: Project: Win32Test, Configuration: Release Win32 ------
1)  stdafx.cpp
1)  Win32Test.cpp
1)  /usr/bin/link: cannot create link `@C:\\Documents and Settings\\sivakoyi\\Local Settings\\Temp\\38228641ba1e4718afce98237c2023f2.rsp' to `/ERRORREPORT:PROMPT': No such file or directory
1) C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(268,5): error MSB6006: "link.exe" exited with code 1.
========== 
Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped 
==========

解决方案

The path "/usr/bin/link" shows that you have cygwin installed and that your search path makes visual studio 2010 find the cygwin linker before the visual studio linker.
Solution:
- rearange your search path
- or dirty rename the cygwin linker so that visual studio doesn''t find it.


don''t generate manifest file, I think change manifest setting could solve your problem.


这篇关于Visual Studio 2010链接器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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