lnk1104:无法打开“LIBC.lib”LINK [英] lnk1104: cannot open 'LIBC.lib' LINK

查看:406
本文介绍了lnk1104:无法打开“LIBC.lib”LINK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用GLee写入着色器到我的OpenGL项目和编译后,我收到错误
LNK1104:无法打开文件'LIBC.lib'。我试过添加它,忽略它像其他人建议的,但没有什么解决这个问题。有没有其他方法来解决这个问题,我错过了?

解决方案

任何此解决方案都可能有效。


  1. 这可能是由于代码生成冲突。因为您的LIBC.lib线程支持可能因您的项目设置而有所不同。所以右键项目 - > 属性 - > C ++ > 代码生成 - > 运行库更改为多线程(MT) >


  2. 如果您的 LIBC.lib 可能不支持多线程。所以你可以去右键项目 - > 属性 - > 链接器 - > 输入 - > 其他依赖并更改 libc.lib libcmt.lib


  3. 如果您的应用程序可能有多个静态链接同一库。你可以去右键项目 - > 属性 - > 链接器 - > 输入 - > 忽略特定库并添加 libc.lib


  4. 可能是你的项目需要这个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.

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

  2. If your LIBC.lib may not support multi threading. So you can go to right click project->properties-> Linker -> Input -> Additional Dependancies and change libc.lib to libcmt.lib

  3. If your application may multiple static link same library. you can go right click project->properties-> Linker -> Input -> Ignore Specific Library and add libc.lib

  4. 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 to right click project->properties-> Linker -> Genaral-> Additional Library directories

这篇关于lnk1104:无法打开“LIBC.lib”LINK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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