<div class="gmail_quote">On Wed, Apr 18, 2012 at 09:40, Christian Staudt <span dir="ltr"><<a href="mailto:christian.staudt@ira.uka.de">christian.staudt@ira.uka.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":ia">In Properties>>C/C++ Build>>Settings>>GCC C++ Compiler >> Includes I add the path<br>
<br>
/usr/local/petsc/include/<br>
<br>
In Properties>>C/C++ Build>>Settings>>MacOS X C++ Linker >> Libraries, I add<br>
<br>
/usr/local/petsc/arch-darwin-c-debug/lib/libpetsc.a<br>
<br>
to "Libraries (-l)" and<br>
<br>
/usr/local/petsc/arch-darwin-c-debug/lib/<br>
<br>
to "Library search path (-L)"<br>
<br>
<br>
<br>
Now I try to build a simple Hello World program which has the lines<br>
<br>
#include <petsc.h><br>
#include <petscmat.h><br>
<br>
at the beginning of the main file.<br>
<br>
I get compiler errors for almost every line of the PETSc header files, indicating that basic types are not found, for example:<br>
<br>
/usr/local/petsc/include/petscmat.h:1643: error: 'PetscScalar' has not been declared<br>
/usr/local/petsc/include/petscmat.h:1721: error: 'PetscReal' has not been declared<br>
/usr/local/petsc/include/petscmat.h:1152: error: 'PetscReal' does not name a type</div></blockquote></div><br><div>What was the _first_ error message? Was petscconf.h found?</div>