<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 1.9.129  (Linux)"><meta name="CREATED" content="20060721;19080300"><meta name="CHANGED" content="20060721;19223900">

        
        
        
        
        <style>
        &lt;!--
                @page { size: 8.5in 11in; margin: 0.79in }
                P { margin-bottom: 0.08in }
        --&gt;
        </style>

<p style="margin-bottom: 0in;">Dear all,</p>


<p style="margin-bottom: 0in;">I would like to use PETSc within a
finite element program (the main part is written in C++). Some
classes should use PETSc routines and routines from other libraries.
When compiling these classes, I have to include not only the header
files from  PETSc (which in the examples of a single C or C++ files
are included automatically with the sample makefiles provided in the
manual) but also header files from the other used libraries. Finally,
I would have also to link PETSc with other libraries at the same
time.<br>
I have tried to construct a makefile
including 'by hand' the PETSc headers but I have always problems. 
Could someone help me? Have you got makefile examples for this
situation (or similar)?</p>

<p style="margin-bottom: 0in;">The compilation options for the PETSc
library that I have employed are:</p>
<p style="margin-bottom: 0in;">./config/configure.py --with-mpi=0
--with-clanguage=c++ --with-scalar-type=complex</p>
<p style="margin-bottom: 0in;">tests and examples are passed
correctly.</p>
<p style="margin-bottom: 0in;">I am running PETSc in linux machines. 
</p>

<p style="margin-bottom: 0in;"><br>
Thank you in advance,</p>


<p style="margin-bottom: 0in;">Jordi Poblet</p>