cximage+vc6.0 problem

Finally solved it, post some great solutions ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh so excited

当遇到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
Solution:
ROJECT->SETING->C/C+±>PREPROCESSOR->Define_AFXDLL


vc6.0 uses cximage (tried so many solutions, this is the most effective)
Step 1:
Download Cximage, open CxImgLib.dsw and compile it
to create a folder cximage, and create two folders in the folder cximage , respectively include and lib
. Copy all .h header files in the downloaded Cximage to the cximage/include folder.
Copy all the .lib library files in the downloaded Cximage to the cximage/lib folder.
Step 2:
Copy the cximage folder you just created to your source directory and add it to the source file

#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")

After opening the evc project with vs, the error "Please use the /MD switch for _AFXDLL builds" appears when compiling. I checked the information and found a solution. The method is as follows:
Modify the following settings: Project -> Properties -> Configuration Properties ->c/c+±>Code Generation->Runtime Library->Multithreaded Debug DLL(/MDd)
That is, Change the Use Run-time liberary of Code Generation in the C/C++ tab of Settings to Debug Multithreaded DLL(/ MDd)


Fix "Error D8016 "/ZI" and "/Gy-" command line options are incompatible"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326315528&siteId=291194637