简体   繁体   English

LNK1181无法打开输入文件。 空间错误?

[英]LNK1181 cannot open input file. space error?

I am having an compile error while trying to build my Windows Forms Project. 尝试构建Windows Forms Project时出现编译错误。

My solution contains: 我的解决方案包含:

  • 2 c# projects (one that creates a binary & one that is just a class with functions) 2个c#项目(一个创建二进制项目,一个仅是带有函数的类)
  • 2 C++ projects (imported from another solution) 2个C ++项目(从其他解决方案导入)

After import I had to re-reference the "Include Directorys" in the (project)Settings->VC++ Directories 导入后,我不得不在(项目)设置-> VC ++目录中重新引用“包含目录”

These 2 solutions work but Im trying to have one solution instead of 2 ( them toghether. After import I had to re-reference the "Include Directorys" in the (project)Settings->VC++ Directories 这两种解决方案都可以,但是我试图用一种解决方案而不是2种(它们在一起。导入后,我不得不在(项目)设置-> VC ++目录中重新引用“包含目录”

And now I am getting this error: 现在我收到此错误:

Error: LNK1181 cannot open input file 错误:LNK1181无法打开输入文件

"C:\\SDK\\Bin\\x64 Release\\\\VS2017-PC.lib" “ C:\\ SDK \\ Bin \\ x64 Release \\\\ VS2017-PC.lib”

There are 3 problems with this link: 此链接存在3个问题:

  • It contains a double backslach 它包含一个双重后座

  • It has a folder that is missing (C:\\PC) 它有一个缺少的文件夹(C:\\ PC)

  • There is the name "Release" instead of debug 有一个名称“ Release”而不是debug

The path should look like this: 路径应如下所示:

'C:\\PC\\SDK\\bin\\x64 debug\\VS2017-PC.lib' 'C:\\ PC \\ SDK \\ bin \\ x64 debug \\ VS2017-PC.lib'

I think it is because my folder "x64 debug" contains a space and is creating this error. 我认为这是因为我的文件夹“ x64 debug”包含一个空格,并且正在创建此错误。 But I dont know how to rename and refresh the paths correctly inside the solution and I dont even know if that would really fix this error. 但是我不知道如何在解决方案中正确重命名和刷新路径,甚至不知道是否真的可以解决此错误。

Image of project Property Pages 项目属性页的图像

The solution was to create the missing folder. 解决方案是创建丢失的文件夹。 For some reason Visual studio didnt create "x64 debug" in the right directory. 由于某些原因,Visual Studio不在正确的目录中创建“ x64调试”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 致命错误LNK1104:无法打开文件'libboost_thread-vc90-mt-1_35.lib' - fatal error LNK1104: cannot open file 'libboost_thread-vc90-mt-1_35.lib' 无法创建原型文件。 必须指定语言错误 - Cannot create proto file. Language must be specified error Microsoft jet 数据库引擎无法打开文件。''。 已被其他用户独占打开,或者您需要权限 - Microsoft jet database engine cannot open the file.''. It is already opened exclusively by another user, or you need permission 错误消息:您没有打开此文件的权限。 与文件所有者或管理员联系以获得权限 - Error message: You don't have permission to open this file. Contact the file owner or an administrator to obtain permission 使用设置文件时出错。 - Error using Settings file. 写入项目文件时出错。 未指定的错误 - Error writing the project file. Unspecified error 错误加载。 不能打开文件 - Error loading. Cannot open file PostgreSQL C ++ API收到错误LNK1107:文件无效或损坏:无法在0x2E8读取 - PostgreSQL C++ Api getting error LNK1107: invalid or corrupt file: cannot read at 0x2E8 如何只打开 a.dat 文件。 在 C# - How to open only a .dat file. In C# 无法打开保存的dxp文件。 Tibco现场射击 - Unable to open saved dxp file. Tibco spotfire
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM