gpt4 book ai didi

visual-studio-2010 - fatal error lnk1104 : can't open LNKn. tmp

转载 作者:行者123 更新时间:2023-12-01 03:58:34 25 4
gpt4 key购买 nike

当我尝试使用 Bamboo 的 Visual-Studio 任务构建我的 MSVC2010 项目时,出现以下错误:

LINK : fatal error LNK1181: File "C:\Windows\system32\config\systemprofile\AppData\Local\Temp\lnk7A64.tmp" could not be opened.

msdn不得不说:

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.)



所以我检查了我的 TMP 变量,它只有一个目录,它确实存在。
实际上甚至生成了一个文件,只是不是正确的。
例如,我开始构建,创建了 lnk7A64.tmp,但链接器查找 lnk7A64.tmp

我只在 Bamboo 上遇到这个错误。它适用于 Visual Studio。
关于为什么会发生这种情况以及如何解决它的任何想法?

更新:

我开始认为这可能是因为 Bamboo 找不到创建正确文件所需的可执行文件(可能是资源编译器)。我已经描述过这个 here前。我以为我可以解决这个问题,但它似乎也导致了这个错误。

最佳答案

我有同样的问题(这让我想到了你的问题!)。我发现默认情况下, Bamboo 代理服务以“SYSTEM”身份运行,这与我的构建不符。按照 Atlassian 的本指南更改您的 Bamboo 代理运行的用户。我这样做了,现在可以使用了。
https://confluence.atlassian.com/display/BAMBOO/Running+Bamboo+service+on+Windows+as+the+local+user

关于visual-studio-2010 - fatal error lnk1104 : can't open LNKn. tmp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15268612/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com