<div>Hi,</div>
<div> </div>
<div>I'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> </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__="src/snes/examples/tut
<br>orials/" ex19.c<br>ex19.c<br>/codes/petsc-2.3.3-p0/bin/win32fe/win32fe cl -MT -Z7 -o ex19 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 /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 -L'/cygdriv<br>e/c/Program Files/Microsoft Visual Studio/DF98/LIB'<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 "
libc.lib" 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> </div>
<div>My configure command is :</div>
<div> </div>
<div>./config/configure.py --with-cc='win32fe cl' --with-fc='win32fe f90' --download-f-blas-lapack=1 LIBS="-L'/cygdrive/c/Program Files/Microsoft Visual Studio/DF98/LIB'" --with-x=0 --with-mpi-dir=/cygdrive/d/cygwin/codes/MPICH/SDK
</div>
<div> </div>
<div>Hope someone can help.</div>
<div> </div>
<div>Thank you.</div>