<div>Hi,</div>
<div>&nbsp;</div>
<div>I&#39;m using ms vc++ and vf in windows xp. I tried to compile PETSc 2.3.3p0. Running configure has no problem. Compiling seems ok but in the last part when it tried to test examples, the error is</div>
<div>&nbsp;</div>
<div>--------------Error detected during compile or link!-----------------------<br>See <a href="http://www.mcs.anl.gov/petsc/petsc-2/documentation/troubleshooting.html">http://www.mcs.anl.gov/petsc/petsc-2/documentation/troubleshooting.html
</a><br>/codes/petsc-2.3.3-p0/bin/win32fe/win32fe cl -o ex19.o -c -MT -Z7 -I/codes/petsc-2.3.3-p0 -I/codes/petsc-2.3.3-p0/bmake/<br>win32_mpi -I/codes/petsc-2.3.3-p0/include -I/cygdrive/d/cygwin/codes/MPICH/SDK/include -D__SDIR__=&quot;src/snes/examples/tut
<br>orials/&quot; ex19.c<br>ex19.c<br>/codes/petsc-2.3.3-p0/bin/win32fe/win32fe cl -MT -Z7&nbsp; -o ex19&nbsp; ex19.o -L/codes/petsc-2.3.3-p0/lib/win32_mpi -L/codes/pet<br>sc-2.3.3-p0/lib/win32_mpi -lpetscsnes -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc&nbsp;&nbsp; /cygdrive/d/cygwin/codes/MPIC
<br>H/SDK/lib/mpich.lib -L/codes/petsc-2.3.3-p0/externalpackages/fblaslapack/win32_mpi -L/codes/petsc-2.3.3-p0/externalpacka<br>ges/fblaslapack/win32_mpi -lflapack -L/codes/petsc-2.3.3-p0/externalpackages/fblaslapack/win32_mpi -L/codes/petsc-
2.3.3-<br>p0/externalpackages/fblaslapack/win32_mpi -lfblas Gdi32.lib User32.lib Advapi32.lib Kernel32.lib Ws2_32.lib&nbsp; -L&#39;/cygdriv<br>e/c/Program Files/Microsoft Visual Studio/DF98/LIB&#39;<br>dformt.lib(matherr.obj) : error LNK2005: __matherr already defined in 
LIBCMT.lib(matherr.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __cinit already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj
) : error LNK2005: __exit already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __cexit already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in 
LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __C_Exit_Done already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __C_Termination_Done already defined in LIBCMT.lib(crt0dat.obj
)<br>libc.lib(crt0dat.obj) : error LNK2005: __exitflag already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __wpgmptr already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __pgmptr already defined in 
LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: ___winitenv already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __wenviron already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib
(crt0dat.obj) : error LNK2005: ___initenv already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __environ already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: ___wargv already defined in 
LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: ___argv already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: ___argc already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib
(crt0dat.obj) : error LNK2005: __winminor already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __winver already defined in 
LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __osver already defined in LIBCMT.lib(crt0dat.obj)<br>libc.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in LIBCMT.lib(crt0dat.obj)<br>LINK : warning LNK4098: defaultlib &quot;
libc.lib&quot; conflicts with use of other libs; use /NODEFAULTLIB:library<br>d:\cygwin\codes\PETSC-~1.3-P\src\snes\examples\TUTORI~1\ex19.exe : fatal error LNK1169: one or more multiply defined sym<br>bols found<br>make[3]: [ex19] Error 2 (ignored)
<br>/usr/bin/rm -f ex19.o</div>
<div>&nbsp;</div>
<div>My configure command is :</div>
<div>&nbsp;</div>
<div>./config/configure.py --with-cc=&#39;win32fe cl&#39; --with-fc=&#39;win32fe f90&#39; --download-f-blas-lapack=1 LIBS=&quot;-L&#39;/cygdrive/c/Program Files/Microsoft Visual Studio/DF98/LIB&#39;&quot; --with-x=0 --with-mpi-dir=/cygdrive/d/cygwin/codes/MPICH/SDK
</div>
<div>&nbsp;</div>
<div>Hope someone can help.</div>
<div>&nbsp;</div>
<div>Thank you.</div>