LINK : fatal error LNK1104: cannot open file "nafxcwd.lib"

来源:互联网 发布:landsat8数据怎么处理 编辑:程序博客网 时间:2024/05/28 23:21

编译时出现此问题,说明将项目设置设为了“在静态库中使用MFC”。Microsoft Visual C++ 6.0标准版不支持静态链接到MFC库。

解决方法为使用动态链接到MFC库。具体操作为:

1.>打开您的 "Project"。
2.>从 "Project" 菜单中单击 "Settings"。
3.>在 "Setting for", 选择 "All configurations"。
4.>单击 "General 选项卡。如果它是不可见的使用选项卡滚动按钮向左滚动。
5.>在 "Microsoft foundation classes" 组合框选择 "Use MFC in a Shared DLL"。
6.>单击 "Ok" 以保存所做的更改。