静态库必须和工程使用同样的编译器同样的编译选项才能链接上去.但是静态库无法静态编译啊 选择静态编译后,出现以下错误 fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds 将代码生成改为MD后出现如下错误 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到底怎么解决这个问题了!在线等待,急啊!@
我百度,google 了很多,都解决不了
不知道是不是VC2005不能解决
没想到静态编译就出这个问题。是不是那些静态库也要静态编译了?
选择静态编译后,出现以下错误
fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
将代码生成改为MD后出现如下错误
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到底怎么解决这个问题了!在线等待,急啊!@
主要是线程模型,和使用编码的问题.这两个是必须一样的.
其他的似乎不相同也可以链接上去.但最好是一样
???
要是你的静态库不使用mfc就选择非mfc的就可以了.
在你的exe工程里面也采用同样的方式.
肯定能解决的
我用过很多次了 都可以的。
因为VC8库系统不自带 我都是静态链接的