<!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. [and if you still have<BR>
issues - send configure.log, make.log & 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>
> Please do not cross post to multiple lists.<BR>
><BR>
> If you have installation issues - send the relavent configure.log to<BR>
> petsc-maint@mcs.anl.gov<BR>
><BR>
> You should be able to specify 'CFLAGS=-MT' option to configure and<BR>
> both PETSc and f2cblaslapack should use it. [assuimg you are using<BR>
> --with-mpi=0]<BR>
><BR>
> Satish<BR>
><BR>
> On Tue, 2 Feb 2010, Zhifeng Sheng - EWI wrote:<BR>
><BR>
> > Dear all<BR>
> ><BR>
> > 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 "win32fe" tool. Does anyone know how I can change the option from /MT to /MD?<BR>
> ><BR>
> ><BR>
> > Thanks and best regards<BR>
> > Zhifeng<BR>
> ><BR>
><BR>
><BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>