VS编译链接错误总结ing
来源:互联网 发布:域名再长我也记得住 编辑:程序博客网 时间:2024/04/30 00:53
1.怎么解决Excel.ApplicationClass' cannot be embedded问题?
当升级VS2008到VS2010时出现Interop type 'Microsoft.Office.Interop.Excel.ApplicationClass' cannot be embedded. Use the applicable interface instead问题
解决方案:打开相关调用 的DLL然后,the Properties tab for the assembly in Visual Studio 2010 and set "Embed Interop Types" to "False
Reference:http://www.cnblogs.com/computer-lzy/archive/2011/11/08/2240727.html
2.fatal error RC1015: cannot open include file '***.h'.
这个问题倒是头次遇到,连资源头文件也要包含进来,项目属性->资源->常规->附件包含目录。
3. mfcs90d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
网上找了一下,原来是CRT 库对某些函数使用弱外部链接导致的。
microsoft给出了解决办法:http://support.microsoft.com/kb/148652
由于其给出的解决方案是基于VC6.0的,因此我在VS2008编译器上实践如下:
进入工程的Properties,然后Linker的input下,在“Additional Dependencies”中填入 mfcs90d.lib MSVCRTD.lib,然后在Ignore Specific Library中填入mfcs90d.lib;MSVCRTD.lib,再链接即可通过。
其实也就是手动指定两个库的链接顺序罢了。(先链接MFC库,再链接CRT库)
- VS编译链接错误总结ing
- VC 编译链接错误总结
- C++编译,链接错误总结
- 编译链接过程的错误总结
- VS编程常见的编译和链接错误
- VS编译静态链接
- 常见vs链接错误
- vs链接错误
- VS链接错误:LNK1169
- vs编译错误解决方案
- VS常见编译错误
- 本人遇到的常见g++编译链接错误总结
- 编译链接常见错误
- VC++ 编译链接错误
- 编译链接错误
- 常见编译链接错误
- X64编译总结 vs
- VS编译Qt时若主函数为wmain时出现链接错误,找不到main入口函数
- 书香与女人
- Android解决"你的手机上未安装应用程序。"的问题
- linux man
- java socket实现文件的发送接收
- 程序员八荣八耻
- VS编译链接错误总结ing
- 关于工作和跳槽
- mysql修改默认编码格式
- 敏捷杂谈
- source navigator启动报错
- Activity生命周期
- 开启android手机的wifi热点
- 简单的luence例子
- 在视图类中怎么进行分割,创建子视图?