FreeGLUT Tips: Resolve compile issue: error LNK1104: cannot open file 'freeglutd.lib'
来源:互联网 发布:斗地主出牌算法 编辑:程序博客网 时间:2024/06/06 23:26
在 Visual C++工程文件中引用了FreeGLUT,结果编译是出现了这个错误:
error LNK1104: cannot open file 'freeglutd.lib'
在opengl.org网站的论坛里找到了答案:https://www.opengl.org/discussion_boards/showthread.php/186328-error-link-1104
Hey man I don't know if you're still having this error but I was running into it as well and it pretty much ate up a couple hours. Pretty much the "freeglutd.lib" has to do with debugging, hence the "d" on the end, so what I did was go into the: Properties > C/C++ > Preprocessor > Preprocessor Definitions and type NDEBUG. What this does is in the "freeglut_std.h" there is a ifdef for NDEBUG that if it is defined then use "freeglut.lib" otherwise it's going to use the "freeglutd.lib". So by defining it in the Preprocessor Definitions, you are now using the "freeglut.lib". Hopefully this helps you out!
解决办法是这样的:
更改 Visual C++工程项目属性,在 C/C++ | Preprocessor | Preprocessor Definitions 的设置中,增加一个宏定义 NDEBUG 即可:
NDEBUG
1 1
- FreeGLUT Tips: Resolve compile issue: error LNK1104: cannot open file 'freeglutd.lib'
- error LNK1104: cannot open file 'atlthunk.lib'
- error LNK1104: cannot open file 'Spromeps_Win64.lib'
- error LNK1104: cannot open file 'opencv_calib3d300.lib'
- error LNK1104: cannot open file 'opencv_calib3d300.lib'
- VS2013 error LNK1104: cannot open file " .lib"
- FreeGLUT Tips: Resolve compile error C2664: cannot convert argument 2 from '_TCHAR *[]' to 'char **'
- LINK : fatal error LNK1104: cannot open file 'mfcs42d.lib'
- LINK : fatal error LNK1104: cannot open file "mfc42ud.lib" - 解决
- LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
- LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'
- fatal error LNK1104: cannot open file 'msvcirtd.lib' 【solution】
- LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
- LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
- LINK : fatal error LNK1104: cannot open file "mfc42d.lib"
- 看程序 fatal error LNK1104: cannot open file "mfc42u.lib"
- LINK : fatal error LNK1104: cannot open file "stlport_vc6_static.lib"
- LINK : fatal error LNK1104: cannot open file "nafxcwd.lib"
- 留个脚印
- 更新第二篇 集合框架
- NSURLConnection常用的代理方法
- Android代码混淆需要知道以及注意的事情
- 经典SQL语句大全
- FreeGLUT Tips: Resolve compile issue: error LNK1104: cannot open file 'freeglutd.lib'
- 值类型和引用类型的区别
- openssl升级到1.0.1g的过程
- html5新标签应用示例一
- AndroidManifest.xml——activity(三)
- c#中volatile关键字的作用(zz)
- iOS中的模糊效果
- 个人链接草稿
- 新gre考试写作中以疑问句开头