<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [petsc-users] Compile Petsc in visual studio 2003 with /MD option</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Thanks, this works.<BR>
<BR>
Best regards<BR>
Zhifeng<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: petsc-users-bounces@mcs.anl.gov on behalf of Satish Balay<BR>
Sent: Tue 2-2-2010 16:51<BR>
To: PETSc users list<BR>
Subject: Re: [petsc-users] Compile Petsc in visual studio 2003 with /MD option<BR>
<BR>
I just did a build petsc petsc-3.0.0 with VC6 with:<BR>
<BR>
./configure --with-mpi=0 --download-c-blas-lapack=1 CFLAGS=-MT --with-fc=0 PETSC_ARCH=cygwin-ms-mt<BR>
<BR>
and the build went fine. If you are having issues - you might want to<BR>
delete PETSC_DIR/PETSC_ARCH and restart.&nbsp; [and if you still have<BR>
issues - send configure.log, make.log &amp; test.log from<BR>
PETSC_DIR/PETSC_ARCH/conf to petsc-maint]<BR>
<BR>
Satish<BR>
<BR>
On Tue, 2 Feb 2010, Satish Balay wrote:<BR>
<BR>
&gt; Please do not cross post to multiple lists.<BR>
&gt;<BR>
&gt; If you have installation issues - send the relavent configure.log to<BR>
&gt; petsc-maint@mcs.anl.gov<BR>
&gt;<BR>
&gt; You should be able to specify 'CFLAGS=-MT' option to configure and<BR>
&gt; both PETSc and f2cblaslapack should use it. [assuimg you are using<BR>
&gt; --with-mpi=0]<BR>
&gt;<BR>
&gt; Satish<BR>
&gt;<BR>
&gt; On Tue, 2 Feb 2010, Zhifeng Sheng - EWI wrote:<BR>
&gt;<BR>
&gt; &gt; Dear all<BR>
&gt; &gt;<BR>
&gt; &gt; I followed the Petsc installation instructions under windows and it works fine. But I have a problem with the /MT option. This option is set for Petsc build and also for the blas-c-lapack. We could modify the compiling option of the petsc package but not for the blas-c-lapack. It seems that the option is hard wired into the &quot;win32fe&quot; tool. Does anyone know how I can change the option from /MT to /MD?<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt; &gt; Thanks and best regards<BR>
&gt; &gt; Zhifeng<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt;<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>