<div>yes it's compaq vf. so how do i change the pcc_linker to use 'win32fe f90`? can u elaborate?</div>
<div> </div>
<div>but anyway, maybe it's not so impt now. i just compiled 2.3.2p8 and it worked. moreover, i tried to run my own code in vf, replacing the 2.3.2p8 files with the 2.3.3p0 and it worked.<br><br> </div>
<div><span class="gmail_quote">On 6/1/07, <b class="gmail_sendername">Satish Balay</b> <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Is this compaq visual fortran?<br><br>You'll have to use FLINKER for c examples as well. [because of fortran
<br>blas - and only compaq f90 know how to do the linking correctly - when<br>fortran objects are involved]. Configure can't handle this case<br>automatically.<br><br>One way to do this is to manualy edit bmake/$PETSC_ARCH/petscconf and
<br>change PCC_LINKER to use 'win32fe f90'<br><br>Satish<br><br>On Fri, 1 Jun 2007, Ben Tay wrote:<br><br>> Hi,<br>><br>> I'm using ms vc++ and vf in windows xp. I tried to compile PETSc 2.3.3p0.<br>> Running configure has no problem. Compiling seems ok but in the last part
<br>> when it tried to test examples, the error is<br>><br>> --------------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<br>> -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<br>> -I/cygdrive/d/cygwin/codes/MPICH/SDK/include<br>> -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
<br>> ex19.o-L/codes/petsc-<br>> 2.3.3-p0/lib/win32_mpi -L/codes/pet<br>> sc-2.3.3-p0/lib/win32_mpi -lpetscsnes -lpetscksp -lpetscdm -lpetscmat<br>> -lpetscvec -lpetsc /cygdrive/d/cygwin/codes/MPIC<br>> H/SDK/lib/mpich.lib
<br>> -L/codes/petsc-2.3.3-p0/externalpackages/fblaslapack/win32_mpi<br>> -L/codes/petsc-2.3.3-p0/externalpacka<br>> ges/fblaslapack/win32_mpi -lflapack<br>> -L/codes/petsc-2.3.3-p0/externalpackages/fblaslapack/win32_mpi
<br>> -L/codes/petsc-2.3.3-<br>> p0/externalpackages/fblaslapack/win32_mpi -lfblas Gdi32.lib User32.lib<br>> 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<br>> LIBCMT.lib(matherr.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __cinit already defined in LIBCMT.lib<br>> (crt0dat.obj)<br>
> libc.lib(crt0dat.obj) : error LNK2005: _exit already defined in LIBCMT.lib(<br>> crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __exit already defined in LIBCMT.lib(<br>> crt0dat.obj)<br>> libc.lib
(crt0dat.obj) : error LNK2005: __cexit already defined in LIBCMT.lib<br>> (crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in<br>> LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj
) : error LNK2005: __C_Exit_Done already defined in<br>> LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __C_Termination_Done already defined<br>> in LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj
) : error LNK2005: __exitflag already defined in<br>> LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __wpgmptr already defined in<br>> LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __pgmptr already defined in
<br>> LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: ___winitenv already defined in<br>> LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __wenviron already defined in<br>
> LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: ___initenv already defined in<br>> LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __environ already defined in<br>>
LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: ___wargv already defined in<br>> LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: ___argv already defined in LIBCMT.lib<br>> (
crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: ___argc already defined in LIBCMT.lib<br>> (crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __winminor already defined in<br>> LIBCMT.lib(crt0dat.obj
)<br>> libc.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in<br>> LIBCMT.lib(crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __winver already defined in<br>> LIBCMT.lib(crt0dat.obj)<br>
> libc.lib(crt0dat.obj) : error LNK2005: __osver already defined in LIBCMT.lib<br>> (crt0dat.obj)<br>> libc.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in<br>> LIBCMT.lib(crt0dat.obj)<br>> LINK : warning LNK4098: defaultlib "
libc.lib" conflicts with use of other<br>> libs; use /NODEFAULTLIB:library<br>> d:\cygwin\codes\PETSC-~1.3-P\src\snes\examples\TUTORI~1\ex19.exe : fatal<br>> 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<br>><br>> My configure command is :<br>><br>> ./config/configure.py --with-cc='win32fe cl' --with-fc='win32fe f90'
<br>> --download-f-blas-lapack=1 LIBS="-L'/cygdrive/c/Program Files/Microsoft<br>> Visual Studio/DF98/LIB'" --with-x=0<br>> --with-mpi-dir=/cygdrive/d/cygwin/codes/MPICH/SDK<br>><br>> Hope someone can help.
<br>><br>> Thank you.<br>><br><br></blockquote></div><br>