zoukankan      html  css  js  c++  java
  • 共享MFC dULL

    >------ 已启动生成: 项目: OSGtest, 配置: Debug Win32 ------
    1>正在编译...
    1>AddScene.cpp
    1>main.cpp
    1>c:program filesmicrosoft visual studio 8vcatlmfcincludeafx.h(24) : fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
    1>PickHandler.cpp
    1>SceneSound.cpp
    1>SemSceneSerializer.cpp
    1>c:program filesmicrosoft visual studio 8vcatlmfcincludeafx.h(24) : fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
    1>XMLSerializer.cpp
    1>c:program filesmicrosoft visual studio 8vcatlmfcincludeafx.h(24) : fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
    1>正在生成代码...
    1>项目 : warning PRJ0018 : 未找到下列环境变量:
    1>$(OSGHOME)
    1>生成日志保存在“file://d:vs2005Project estOSGtestOSGtestDebugBuildLog.htm”
    1>OSGtest - 3 个错误,0 个警告
    ========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========

    在VS2005下,遇到这个错误。
    解决方法:对着你的项目点击右键,依次选择:属性、配置属性、常规,然后右边有个“项目默认值”,下面有个MFC的使用,选择“在共享 DLL 中使用 MFC”,就OK了~~~
  • 相关阅读:
    剑指Offer-用两个栈实现队列
    剑指Offer-从尾到头打印链表
    滑动门技术实现
    解决keil5中文注释乱码方法
    faker数据填充详解
    redis在微博与微信等互联网应用笔记
    JDBC插入中文数据出现?号地解决问题
    idea配置less自动编译
    idea使用Vue的v-bind,v-on报错
    idea 代码部分格式化
  • 原文地址:https://www.cnblogs.com/Peit/p/6111759.html
Copyright © 2011-2022 走看看