<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Dear all,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hope you can help me out since I am quite lost. I
successfully built petsc-2.3.3-p13 with Visual Studio 03 using C++ with the
following configurations, which relist from the configure.log.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Configure Options: --with-cc=&quot;win32fe cl&quot;
--with-fc=0 --with-cxx=&quot;win32fe cl&quot; --download-c-blas-lapack --with-debugging=0
--useThreads=0 --with-shared=0 --configModules=PETSc.Configure
--optionsModule=PETSc.compilerOptions<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Working directory: /home/bbwannabe/Petsc/latest<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Python version:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2.5.1 (r251:54863, May 18 2007, 16:56:43) <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Unfortunately, I was unable to build the ex2 example in the
tutorials directory even from the console with three unresolved external
linking errors as shown below. What other libraries do I need to include in the
Makefile to get ex2 built? I am using the Makefile given in the Tutorials
directory without any modification.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Many thanks in advance for your help,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thuc<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;~/Petsc/latest/src/ksp/ksp/examples/tutorials<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>$ make ex2<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>/home/bbwannabe/Petsc/latest/bin/win32fe/win32fe cl -o ex2.o
-c -wd4996 -MT -I/home/bbwannabe/Petsc/latest/src/dm/mesh/sieve
-I/home/bbwannabe/Petsc/latest
-I/home/bbwannabe/Petsc/latest/bmake/cygwin-c-opt
-I/home/bbwannabe/Petsc/latest/include -I/cygdrive/c/Program
Files/MPICH2/include -D__SDIR__=&quot;src/ksp/ksp/examples/tutorials/&quot;
ex2.c<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>ex2.c<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>/home/bbwannabe/Petsc/latest/bin/win32fe/win32fe cl -wd4996
-MT&nbsp; -o ex2 ex2.o&nbsp; -L/home/bbwannabe/Petsc/latest/lib/cygwin-c-opt
-L/home/bbwannabe/Petsc/latest/lib/cygwin-c-opt -lpetscksp -lpetscdm -lpetscmat
-lpetscvec -lpetsc&nbsp;&nbsp;&nbsp; /cygdrive/c/Program\
Files/MPICH2/lib/fmpich2.lib /cygdrive/c/Program\ Files/MPICH2/lib/mpi.lib
-L/home/bbwannabe/Petsc/latest/externalpackages/f2cblaslapack/cygwin-c-opt
-L/home/bbwannabe/Petsc/latest/externalpackages/f2cblaslapack/cygwin-c-opt
-lf2clapack -L/home/bbwannabe/Petsc/latest/externalpackages/f2cblaslapack/cygwin-c-opt
-L/home/bbwannabe/Petsc/latest/externalpackages/f2cblaslapack/cygwin-c-opt
-lf2cblas Gdi32.lib User32.lib Advapi32.lib Kernel32.lib Ws2_32.lib <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>libpetscmat.lib(mpiaij.o) : error LNK2019: unresolved
external symbol _MatConvert_MPIAIJ_MPICSRPERM referenced in function
_MatCreate_MPIAIJ<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>libpetscmat.lib(matregis.o) : error LNK2019: unresolved
external symbol _MatCreate_MPICSRPERM referenced in function _MatRegisterAll<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>libpetscmat.lib(matregis.o) : error LNK2019: unresolved
external symbol _MatCreate_CSRPERM referenced in function _MatRegisterAll<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>C:\cygwin\home\BBWANN~1\Petsc\latest\src\ksp\ksp\examples\TUTORI~1\ex2.exe
: fatal error LNK1120: 3 unresolved externals<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>/usr/bin/rm -f ex2.o<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>