<div dir="ltr">Hi, <br><br>How can you change the Linker to VC 2008 's link.exe? I configured the script successfuly. But my linker option (PETSc generated)<br>is /usr/bin/ar. Below is part of the scratch configure results. <br>
<br>Compilers:<br> C Compiler: /home/pangshengyong/soft/petsc-2.3.3-p13/bin/win32fe/win32<br>fe cl --nodetect -wd4996 -MT<br> C++ Compiler: /home/pangshengyong/soft/petsc-2.3.3-p13/bin/win32fe/win32<br>fe cl --nodetect -GR -GX -EHsc -MT -O2 -Zm200 -TP<br>
Fortran Compiler: /home/pangshengyong/soft/petsc-2.3.3-p13/bin/win32fe/win32<br>fe ifort --nodetect -MT -O3 -QxW -fpp<br><b>Linkers:<br> Static linker: /usr/bin/ar cr</b> <br>PETSc:<br> PETSC_ARCH: windows_VC<br>
PETSC_DIR: /home/pangshengyong/soft/petsc-2.3.3-p13<br> **<br> ** Now build and test the libraries with "make all test"<br> **<br> Clanguage: C<br> Scalar type:real<br> PETSc shared libraries: disabled<br>
PETSc dynamic libraries: disabled<br>BLAS/LAPACK: -L/home/pangshengyong/soft/petsc-2.3.3-p13/externalpackages/fblasla<br>pack/windows_VC -L/home/pangshengyong/soft/petsc-2.3.3-p13/externalpackages/fbla<br>slapack/windows_VC -lflapack -L/home/pangshengyong/soft/petsc-2.3.3-p13/external<br>
packages/fblaslapack/windows_VC -L/home/pangshengyong/soft/petsc-2.3.3-p13/exter<br>nalpackages/fblaslapack/windows_VC -lfblas<br><br><br>Regards,<br><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 4:06 PM, Farshid Mossaiby <span dir="ltr"><<a href="mailto:mossaiby@yahoo.com">mossaiby@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
They are .lib files.<br>
<br>
Best regards,<br>
Farshid Mossaiby<br>
<div class="Ih2E3d"><br>
<br>
--- On Wed, 8/13/08, berry <<a href="mailto:lua.byhh@gmail.com">lua.byhh@gmail.com</a>> wrote:<br>
<br>
> From: berry <<a href="mailto:lua.byhh@gmail.com">lua.byhh@gmail.com</a>><br>
> Subject: Re: problem in compiling petsc for visual c++ 2005<br>
> To: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
</div>> Date: Wednesday, August 13, 2008, 11:39 AM<br>
<div><div></div><div class="Wj3C7c">> Hi, Farshid<br>
><br>
> Thanks for you suggestions. Can you tell me the surfix of<br>
> your compiled<br>
> library is .a or .lib?<br>
><br>
><br>
> On Wed, Aug 13, 2008 at 2:44 PM, Farshid Mossaiby<br>
> <<a href="mailto:mossaiby@yahoo.com">mossaiby@yahoo.com</a>>wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I have built Petsc a lot of times with VC++ 2008<br>
> Express edition and<br>
> > Cygwin. I used to run C:\Cygwin\Cygwin.bat,<br>
> and had no problem.<br>
> ><br>
> > I just looked into the batch file, and it contains:<br>
> ><br>
> > ----------------------------<br>
> > @echo off<br>
> ><br>
> > C:<br>
> > chdir C:\Cygwin\bin<br>
> ><br>
> > bash --login -i<br>
> > ----------------------------<br>
> ><br>
> > I am not sure what '-i' in bash parameters<br>
> mean, but it may help you.<br>
> > Anyway, I still recommend you running the batch file<br>
> itself.<br>
> ><br>
> > Best regards,<br>
> > Farshid Mossaiby<br>
> ><br>
> > --- On Tue, 8/12/08, berry <<a href="mailto:lua.byhh@gmail.com">lua.byhh@gmail.com</a>><br>
> wrote:<br>
> ><br>
> > > From: berry <<a href="mailto:lua.byhh@gmail.com">lua.byhh@gmail.com</a>><br>
> > > Subject: Re: problem in compiling petsc for<br>
> visual c++ 2005<br>
> > > To: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
> > > Date: Tuesday, August 12, 2008, 9:49 PM<br>
> > > Hi, Satish<br>
> > ><br>
> > > Sorry for my vague reply.<br>
> > ><br>
> > > I just use 'bash' not 'bash<br>
> --login'. With<br>
> > > 'bash' only, the configure script<br>
> > > can not find 'mkdir' and 'sed'<br>
> command, as<br>
> > > you kindly points me out.<br>
> > ><br>
> > > Then I try this utilities: 'usr/bin/run.exe<br>
> -ls'<br>
> > > to open a xterm window. I<br>
> > > Successed. In this window, I can find<br>
> 'mkdir' and<br>
> > > 'sed' plus visual c++'s<br>
> > > 'cl.exe' and intel fortran 's<br>
> > > 'ifort.exe' now.<br>
> > ><br>
> > > After that, I do configure petsc again with<br>
> > > './config/configure.py '( I can<br>
> > > not remember other paramters for mpich , lapack,<br>
> blas,<br>
> > > winfe cl , winfe<br>
> > > ifort and hypre now, but I follow the exact<br>
> guidence from<br>
> > > petsc official<br>
> > > website).<br>
> > ><br>
> > > However, after several minutes's<br>
> configuration, petsc<br>
> > > configuration script<br>
> > > still CRASHED with no error prompt on screen. It<br>
> just tell<br>
> > > me to send the<br>
> > > config.log file to developers. Right now I am not<br>
> in my<br>
> > > office, tomorrow I<br>
> > > will send the config.log file to corresponding<br>
> email<br>
> > > address.<br>
> > ><br>
> > > Hope this time you can understand what I say.<br>
> > ><br>
> > > Thanks for you help!<br>
> > ><br>
> > > On Tue, Aug 12, 2008 at 10:43 PM, Satish Balay<br>
> > > <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br>
> > ><br>
> > > ><br>
> > > > On Tue, 12 Aug 2008, berry wrote:<br>
> > > ><br>
> > > > > Thanks, I have already logged into the<br>
> cygwin<br>
> > > from VC command prompt.<br>
> > > ><br>
> > > > What does this mean? do you now have mkdir<br>
> and sed in<br>
> > > your path?<br>
> > > ><br>
> > > > If not - redo VC cmd prompt - and 'bash<br>
> > > --login' - and let us know if:<br>
> > > ><br>
> > > > - mkdir & sed are in your PATH<br>
> > > > which sed<br>
> > > > which mkdir<br>
> > > ><br>
> > > > - now configure is successful or not..<br>
> > > ><br>
> > > ><br>
> > > > Satish<br>
> > > ><br>
> > > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > > Pang Shengyong<br>
> > > Solidification Simulation Lab,<br>
> > > State Key Lab of Mould & Die Technology,<br>
> > > Huazhong Univ. of Sci. & Tech. China<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
><br>
><br>
> --<br>
> Pang Shengyong<br>
> Solidification Simulation Lab,<br>
> State Key Lab of Mould & Die Technology,<br>
> Huazhong Univ. of Sci. & Tech. China<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Pang Shengyong<br>Solidification Simulation Lab, <br>State Key Lab of Mould & Die Technology,<br>Huazhong Univ. of Sci. & Tech. China<br>
</div>