<div dir="ltr">Hi, <br><br>Thanks for you reply. Previously may be I did not set the cxx compiler , so 'make all test' produces '.a ' file. This time it produces correct '.lib' files after the correct setting.<br>
<br>Best Regards,<br><br><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 4:27 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>
I am not sure how to do this, but why you need it? The resulting .lib files can later be used in your own programs without any problems.<br>
<div class="Ih2E3d"><br>
Best regards,<br>
Farshid Mossaiby<br>
<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, 12:50 PM<br>
<div><div></div><div class="Wj3C7c">> Hi,<br>
><br>
> How can you change the Linker to VC 2008 's link.exe?<br>
> I configured the<br>
> script successfuly. But my linker option (PETSc generated)<br>
> is /usr/bin/ar. Below is part of the scratch configure<br>
> results.<br>
><br>
> Compilers:<br>
> C Compiler:<br>
> /home/pangshengyong/soft/petsc-2.3.3-p13/bin/win32fe/win32<br>
> fe cl --nodetect -wd4996 -MT<br>
> C++ Compiler:<br>
> /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:<br>
> /home/pangshengyong/soft/petsc-2.3.3-p13/bin/win32fe/win32<br>
> fe ifort --nodetect -MT -O3 -QxW -fpp<br>
> *Linkers:<br>
> Static linker: /usr/bin/ar cr*<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<br>
> test"<br>
> **<br>
> Clanguage: C<br>
> Scalar type:real<br>
> PETSc shared libraries: disabled<br>
> PETSc dynamic libraries: disabled<br>
> BLAS/LAPACK:<br>
> -L/home/pangshengyong/soft/petsc-2.3.3-p13/externalpackages/fblasla<br>
> pack/windows_VC<br>
> -L/home/pangshengyong/soft/petsc-2.3.3-p13/externalpackages/fbla<br>
> slapack/windows_VC -lflapack<br>
> -L/home/pangshengyong/soft/petsc-2.3.3-p13/external<br>
> packages/fblaslapack/windows_VC<br>
> -L/home/pangshengyong/soft/petsc-2.3.3-p13/exter<br>
> nalpackages/fblaslapack/windows_VC -lfblas<br>
><br>
><br>
> Regards,<br>
><br>
><br>
> On Wed, Aug 13, 2008 at 4:06 PM, Farshid Mossaiby<br>
> <<a href="mailto:mossaiby@yahoo.com">mossaiby@yahoo.com</a>>wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > They are .lib files.<br>
> ><br>
> > Best regards,<br>
> > Farshid Mossaiby<br>
> ><br>
> ><br>
> > --- On Wed, 8/13/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: Wednesday, August 13, 2008, 11:39 AM<br>
> > > Hi, Farshid<br>
> > ><br>
> > > Thanks for you suggestions. Can you tell me the<br>
> 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++<br>
> 2008<br>
> > > Express edition and<br>
> > > > Cygwin. I used to run<br>
> C:\Cygwin\Cygwin.bat,<br>
> > > and had no problem.<br>
> > > ><br>
> > > > I just looked into the batch file, and it<br>
> 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<br>
> parameters<br>
> > > mean, but it may help you.<br>
> > > > Anyway, I still recommend you running the<br>
> batch file<br>
> > > itself.<br>
> > > ><br>
> > > > Best regards,<br>
> > > > Farshid Mossaiby<br>
> > > ><br>
> > > > --- On Tue, 8/12/08, berry<br>
> <<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<br>
> 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<br>
> script<br>
> > > > > can not find 'mkdir' and<br>
> 'sed'<br>
> > > command, as<br>
> > > > > you kindly points me out.<br>
> > > > ><br>
> > > > > Then I try this utilities:<br>
> '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<br>
> 's<br>
> > > > > 'ifort.exe' now.<br>
> > > > ><br>
> > > > > After that, I do configure petsc again<br>
> with<br>
> > > > > './config/configure.py '( I can<br>
> > > > > not remember other paramters for mpich<br>
> , lapack,<br>
> > > blas,<br>
> > > > > winfe cl , winfe<br>
> > > > > ifort and hypre now, but I follow the<br>
> 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<br>
> screen. It<br>
> > > just tell<br>
> > > > > me to send the<br>
> > > > > config.log file to developers. Right<br>
> now I am not<br>
> > > in my<br>
> > > > > office, tomorrow I<br>
> > > > > will send the config.log file to<br>
> corresponding<br>
> > > email<br>
> > > > > address.<br>
> > > > ><br>
> > > > > Hope this time you can understand what<br>
> I say.<br>
> > > > ><br>
> > > > > Thanks for you help!<br>
> > > > ><br>
> > > > > On Tue, Aug 12, 2008 at 10:43 PM,<br>
> 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<br>
> logged into the<br>
> > > cygwin<br>
> > > > > from VC command prompt.<br>
> > > > > ><br>
> > > > > > What does this mean? do you now<br>
> have mkdir<br>
> > > and sed in<br>
> > > > > your path?<br>
> > > > > ><br>
> > > > > > If not - redo VC cmd prompt - and<br>
> '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<br>
> not..<br>
> > > > > ><br>
> > > > > ><br>
> > > > > > Satish<br>
> > > > > ><br>
> > > > > ><br>
> > > > ><br>
> > > > ><br>
> > > > > --<br>
> > > > > Pang Shengyong<br>
> > > > > Solidification Simulation Lab,<br>
> > > > > State Key Lab of Mould & Die<br>
> Technology,<br>
> > > > > Huazhong Univ. of Sci. & Tech.<br>
> 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>
> ><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>