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