about runtime lib conflict
Yixun Liu
yxliu at fudan.edu.cn
Tue Oct 31 02:37:08 CST 2006
Hi,
Should be COPTFLAGS='-MDd -Z7' CXXOPTFLAGS='-MDd -Z7' due to debug version?
Best,
Yixun
----- Original Message -----
From: "Satish Balay" <balay at mcs.anl.gov>
To: <petsc-users at mcs.anl.gov>
Sent: Monday, October 30, 2006 4:58 AM
Subject: Re: about runtime lib conflict
> 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