lnk1104:无法打开“LIBC.lib”LINK [英] lnk1104: cannot open 'LIBC.lib' LINK
问题描述
在使用GLee写入着色器到我的OpenGL项目和编译后,我收到错误
LNK1104:无法打开文件'LIBC.lib'
。我试过添加它,忽略它像其他人建议的,但没有什么解决这个问题。有没有其他方法来解决这个问题,我错过了?
任何此解决方案都可能有效。
-
这可能是由于代码生成冲突。因为您的LIBC.lib线程支持可能因您的项目设置而有所不同。所以
右键项目
- >属性
- >C ++
>代码生成
- >运行库
更改为多线程(MT) > -
如果您的
LIBC.lib
可能不支持多线程。所以你可以去右键项目
- >属性
- >链接器
- >输入
- >其他依赖
并更改libc.lib
到libcmt.lib
-
如果您的应用程序可能有多个静态链接同一库。你可以去
右键项目
- >属性
- >链接器
- >输入
- >忽略特定库
并添加libc.lib
-
可能是你的项目需要这个lib,但是你的系统没有(应该在
C:\程序文件(x86)\Microsoft Visual Studio 9.0 \VC\lib \
)。在这种情况下,您必须从某个地方下载到本地计算机,并将本地文件夹的路径添加到右键单击项目
- >属性
- >链接器
- >Genaral
- >c $ c>
After writing a shader using GLee to my OpenGL project and compiling, I received the error
LNK1104: cannot open file 'LIBC.lib'
. I've tried adding it and ignoring it as others suggested, but not nothing resolved the issue. Is there an alternative way to solve this that I've missed?
Here is some direction for you. Any of this solution may work.
This may due to code generation conflict. because your LIBC.lib thread support may be differ with your project settings. So
right click project
->properties
->C++
->code generation
->Runtime Library
change to Multi-threaded(MT) (for debug MTD).If your
LIBC.lib
may not support multi threading. So you can go toright click project
->properties
->Linker
->Input
->Additional Dependancies
and changelibc.lib
tolibcmt.lib
If your application may multiple static link same library. you can go
right click project
->properties
->Linker
->Input
->Ignore Specific Library
and addlibc.lib
May be your project need this lib, but your system doesn't have (should be in
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\
). In that case you have to download from some place to your local computer and add the path of local folder toright click project
->properties
->Linker
->Genaral
->Additional Library directories
这篇关于lnk1104:无法打开“LIBC.lib”LINK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!