about runtime lib conflict

Satish Balay balay at mcs.anl.gov
Sun Oct 29 14:58:08 CST 2006


>From http://support.microsoft.com/kb/154419/

MSVCRTD.lib:  Debug multithreaded DLL (MDd) Basic C Runtime library  
LIBCPMTD.lib: Debug multithreaded (MTd)  Standard C++ library

We default to using ' -MT -Z7' compiler options. But looks like
you need '-MD -Z7'

You can configure PETSc with the additional options. 

COPTFLAGS='-MD -Z7' CXXOPTFLAGS='-MD -Z7'

Satish

On Sun, 29 Oct 2006, Yixun Liu wrote:

> Hi,
> 
> In my application I use two libs. One uses run time lib MSVCPRTD and  PETSC uses run time lib LIBCPMTD. The run time lib is determined by the compiler option. The two libs will use different run time libs when they use different compiler option. But this will cause lib conflict. So I need to config the PETSC to let it use the same run time lib with the other.
> 
> Best,
> 
> Yixun
> 
> ----- Original Message ----- 
> From: "Satish Balay" <balay at mcs.anl.gov>
> To: "PETSC" <petsc-users at mcs.anl.gov>
> Sent: Sunday, October 29, 2006 2:42 PM
> Subject: Re: about runtime lib conflict
> 
> 
> > On Sun, 29 Oct 2006, Yixun Liu wrote:
> > 
> >> Hi,
> >> 
> > 
> >> I use PETSC with other libs, but they use different runtime lib.
> > 
> > I don't understand this statement.
> > 
> >> I hope to config PETSC with Debug multithread dll runtime lib. How
> >> to do it?
> > 
> > 1. Build PETSc libraries with the default configure options
> > [The defaults enable  Debug, multithread, dll options for MS compilers.]
> > 
> > 2. Build the libraries
> > 
> > 3. Verify 'make test' works
> > 
> > 4. If you need to use these libraries from MS Project File, follow
> > instructions in the section 'Project Files' at 
> > http://www-unix.mcs.anl.gov/petsc/petsc-as/documentation/installation.html
> >
> 
> 




More information about the petsc-users mailing list