Visual C++ Tips: fatal error LNK1276: invalid directive 'ComMode.Obj' found; does not start with '/'
来源:互联网 发布:windows udp端口测试 编辑:程序博客网 时间:2024/06/05 06:46
问题
将某古老的VC6项目迁移到VS2005,编译时出现这个错误:
fatal error LNK1276: invalid directive ‘ComMode.Obj’ found; does not start with ‘/’
解决
经过广泛搜寻,发现是这样一条语句导致的这个编译错误:
#pragma comment(linker, "ComMode.Obj")
解决方案:把这行代码注释掉(Remark),改在项目属性里面设置:Property Pages | Linker | General | Additional Library Directories
参考文章
- fatal error LNK1276: does not start with ‘/’
- MSDN: Link Options
- MSDN: /LIBPATH (Additional Libpath)
0 0
- Visual C++ Tips: fatal error LNK1276: invalid directive 'ComMode.Obj' found; does not start with '/'
- LINK : fatal error L1093: xxx.obj : object file not found
- GLUT Fatal Error: pixel format with necessary capabilities not found.
- Fengoffice installation with fatal error "Class 'DB' not found"
- Error: Resource named 'back' does not start with the project's resource prefix 'xxxx';
- Fatal Error in XXXXXX pixel format with necessary capabilities not found
- spring 错误 Invalid bound statement (not found) 和 Error creating bean with name 'sqlSessionFactory'
- Fatal error: Class 'PEAR_Error' not found in
- Fatal error: Class ‘ZipArchive’ not found
- PHP Fatal error: Class 'DOMDocument' not found
- Fatal error: Class 'PDO' not found解决办法
- PHP Fatal error: Class 'Mongo' not found
- Fatal error: Class 'Mobile_Detect' not found
- ubuntu - Fatal error: Class 'Redis' not found
- Fatal error: Class 'Mage_Adminhtml_Controller_action' not found in
- Workerman--Fatal error: Class 'MongoClient' not found
- PHP Fatal error: Class 'DOMDocument' not found
- Fatal error: Class 'GearmanClient' not found解决方法
- 黑马程序员————Java基础日常笔记---对集合的理解与总结一
- SharedPreferences的介绍
- NS2 trace文件分析脚本(适合无线trace)
- 【Linux】存储映射IO-mmap
- 大数据之storm入门
- Visual C++ Tips: fatal error LNK1276: invalid directive 'ComMode.Obj' found; does not start with '/'
- POJ-3279(Fliptile)--简单搜索
- 我持续推动Rust语言支持Windows XP系统
- 排序算法总结----快速排序
- Git常用命令
- JSTL标签 参考手册
- Maven构建多模块项目
- FP所渗透的范畴论
- 背景音乐功能