<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Bookman Old Style">Hi,</FONT></DIV>
<DIV><FONT face="Bookman Old Style">I config PETSC with,</FONT></DIV>
<DIV><FONT face="Bookman Old Style">$ ./config/configure.py
--with-mpi-dir=/cygdrive/d/MPICH2 --with-cc='win32fe cl' --with-fc=0
--with-cxx='win32fe cl' --with-clanguage=cxx
--with-blas-lapack-dir=$PETSC_DIR/externalpackages/w_mkl_serial_p_8.1.001/mkl_serial_8.1/mkl_8.1_serial/ia32/lib COPTFLAGS='-MD
-Z7' CXXOPTFLAGS='-MD -Z7'</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">In my applicaton I use another lib, which
use Debug multithread DLL run time lib. When I use this two libs together I
alwayse receive the warning :</FONT></DIV>
<DIV><FONT face="Bookman Old Style">"LINK : warning LNK4098: defaultlib
"MSVCRTD" conflicts with use of other libs; use
/NODEFAULTLIB:library".</FONT></DIV>
<DIV><FONT face="Bookman Old Style"> I think this is because PETSC use
MSVCRT run time lib and the other lib use MSVCRTD run time lib. If I ignore this
warning the application will run into exception. So I need to config the PETSC
to let it use the same run time lib. Should I use COPTFLAGS='-MDd -Z7'
CXXOPTFLAGS='-MDd -Z7'?</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Best,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Yixun</FONT></DIV></BODY></HTML>