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