<div class="gmail_quote">On Thu, Nov 10, 2011 at 23:11, Xiang Hao <span dir="ltr"><<a href="mailto:haoxiang@yahoo.cn">haoxiang@yahoo.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>I have a program using PETSc, which is running well. Now I just add a new line #include <petscdmda.h> in my code and get the following error. I don't understand what's going on here. Any help?<br>
<div><br></div><div>-------------------------------------------------------------------------------------------------------------</div><div><div>In file included from /home/sci/hao/software/PETSc/include/petscdmda.h:4:0,</div>
<div> from /home/sci/hao/programming/C++/ITK/SolveAlpha/SolveAlpha.h:18,</div><div> from /home/sci/hao/programming/C++/ITK/SolveAlpha/SolveAlpha.cxx:9:</div><div>/home/sci/hao/software/PETSc/include/petscdm.h:27:8: error: ‘PetscClassId’ does not name a type</div>
<div>/home/sci/hao/software/PETSc/include/petscdm.h:48:8: error: ‘PetscBool’ does not name a type</div></div></div></blockquote></div><br><div>The most likely explanation is that a path to an old version of PETSc appears before this one in the header search paths, therefore it finds the file with a new name (petscdm.h) in the new directory, but finds all the supporting headers (which did not change names) in the old directory. Check the command line and environment.</div>