cximage+vc6.0问题
终于解决,贴一些大神的解决方案啊啊啊啊啊啊啊啊啊啊啊啊啊啊好激动
当遇到MSCVRT冲突问题时
When I try to build my sources linking with libeay32.lib. I have built this locally from OpenSSL sources. I encountered the above warning “LINK : warning LNK4098: defaultlib ‘MSVCRT’ conflicts with use of other libs; use /NODEFAULTLIB:library”. When I debug my exe, whenever there is some system call (like read()), Exe crashes. After some search, I could find that this is some thing related to ‘Runtime Library’ MT and MD. I can’t fix this by building openssl sources due to some reasons. As of now, what I did is I kept the entry “MSVCRT.lib” at Ignore Specific Library I have to do this for several other libraries. Which I don’t want to. Is there any other Optimal solution.
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
解决方法:
ROJECT->SETING->C/C+±>PREPROCESSOR->定义 _AFXDLL
vc6.0使用cximage(试了那么多解决方案,这个是最有效的)
第一步:
下载好Cximage,打开CxImgLib.dsw并且编译他
建立一个文件夹cximage,在文件夹cximage中建立两个文件夹,分别是include和lib
把下载的Cximage中,所有的.h头文件复制到cximage/include文件夹里面
把下载的Cximage中,所有的.lib库文件复制到cximage/lib文件夹里面
第二步:
把刚刚创建的cximage文件夹,复制到你的源码目录下,在源码文件中添加
#include "cximage/include/ximage.h"
#pragma comment(lib, "cximage/lib/png.lib")
#pragma comment(lib, "cximage/lib/libdcr.lib")
#pragma comment(lib, "cximage/lib/jpeg.lib")
#pragma comment(lib, "cximage/lib/zlib.lib")
#pragma comment(lib, "cximage/lib/tiff.lib")
#pragma comment(lib, "cximage/lib/jasper.lib")
#pragma comment(lib, "cximage/lib/cximage.lib")
#pragma comment(lib, "cximage/lib/mng.lib")
在用vs打开evc项目后,编译的时候出现“Please use the /MD switch for _AFXDLL builds”这个错误,查了下资料,找到解决方法,方法如下:
修改如下设置:工程->属性->配置属性->c/c+±>代码生成->运行时库->多线程调试DLL(/MDd)
也就是在Settings的C/C++选项卡的Code Generation的Use Run-time liberary改成Debug Multithreaded DLL(/MDd)