标题:小弟有个编译问题请教
只看楼主
niitzz
Rank: 1
等 级:新手上路
帖 子:12
专家分:3
注 册:2011-7-20
 问题点数:0 回复次数:3 
小弟有个编译问题请教
各位大侠们,小弟有个问题向大家请教下
小弟新装的visual c++ 6.0  装完后写了个小程序,compile没有问题 build 时出现LINK : fatal error LNK1104: cannot open file "Debug/test.exe"错误
而且安装目录下也没有myproject文件夹,不知道是啥原因,有哪位兄弟给小弟指点迷津呀
搜索更多相关主题的帖子: 文件夹 cannot visual 
2011-09-28 22:21
lkz1987n
Rank: 2
等 级:论坛游民
帖 子:10
专家分:18
注 册:2011-9-8
得分:0 
程序代码:
Linker Tools Error LNK1104 
Send Feedback 

Updated: November 2007

Error Message
cannot open file 'filename'


The tool could not open the given file. 

To fix by checking the following possible causes: 

Not enough disk space. 

File does not exist. 

When specifying libraries in a project's property pages dialog box, library names should be separated by spaces (and not commas). 

Incorrect filename or path. 

Invalid drive specification. 

Insufficient file permissions. 

Path for filename expands to more than 260 characters. 

If the given file is named LNKn, which is a filename generated by the linker for a temporary file, the directory specified in the TMP environment variable may not exist, or more than one directory is specified for the TMP environment variable. (Only one directory path should be specified for the TMP environment variable.) 

If the error message occurs for a library name, and you recently ported the .mak file from a previous Microsoft Visual C++ development system, the library may no longer be valid. Ensure that the library still exists in this circumstance. 

Another program may have the file open and the linker cannot write to it. 

Incorrect LIB environment variable. For information on how to update the LIB environment variable, see VC++ Directories, Projects and Solutions, Options Dialog Box . Make sure any directories with libraries you need are listed here. 

The linker uses temporary files in several cases. Even if you have sufficient disk space, a very large link can deplete or fragment the address space. 

To fix by using the following possible solutions 

Use /OPT (Optimizations); doing transitive comdat elimination reads all the object files multiple times. 

Upgrade to Windows XP. 

自己要学会利用msdn来自己解决问题。虽然刚开始很痛苦,但是熟练应用msdn,对你好处大大的。自己翻译看看哪里出问题了。
2011-09-29 00:13
laznrbfe
Rank: 10Rank: 10Rank: 10
等 级:青峰侠
帖 子:482
专家分:1599
注 册:2011-5-22
得分:0 
回复 2楼 lkz1987n
在哪里查看?谢谢。
2011-09-29 09:42
mengcan555
Rank: 4
等 级:业余侠客
帖 子:104
专家分:253
注 册:2011-9-17
得分:0 
将工程存到自己的文件当中,而不是默认文件夹里面。原因暂时不知,但能够解决问题
2011-10-02 22:24



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-351159-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.095999 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved