[petsc-users] Compile Petsc in visual studio 2003 with /MD option

Satish Balay balay at mcs.anl.gov
Tue Feb 2 09:51:09 CST 2010


I just did a build petsc petsc-3.0.0 with VC6 with:

./configure --with-mpi=0 --download-c-blas-lapack=1 CFLAGS=-MT --with-fc=0 PETSC_ARCH=cygwin-ms-mt

and the build went fine. If you are having issues - you might want to
delete PETSC_DIR/PETSC_ARCH and restart.  [and if you still have
issues - send configure.log, make.log & test.log from
PETSC_DIR/PETSC_ARCH/conf to petsc-maint]

Satish

On Tue, 2 Feb 2010, Satish Balay wrote:

> Please do not cross post to multiple lists.
> 
> If you have installation issues - send the relavent configure.log to
> petsc-maint at mcs.anl.gov
> 
> You should be able to specify 'CFLAGS=-MT' option to configure and
> both PETSc and f2cblaslapack should use it. [assuimg you are using
> --with-mpi=0]
> 
> Satish
> 
> On Tue, 2 Feb 2010, Zhifeng Sheng - EWI wrote:
> 
> > Dear all
> > 
> > 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?
> > 
> > 
> > Thanks and best regards
> > Zhifeng
> > 
> 
> 



More information about the petsc-users mailing list