Hi,<br><br>I`m trying to test Sieve library, but compiling some examples in the directory  PETSC_DIR/src/dm/mesh/examples/tutorials I have got the errors bellow, . Is there anything wrong with my configurations??. I send attached my configure.log. <br>
<br>Thanks in advance.<br><br>Best Regards<br><br>Pedro<br>
<br>-----------------------------------------------------------------------------<br>Configuration:<br><br>./config/configure.py --with-clanguage=cxx  --with-boost=1
--download-boost=/opt/petsc/boost.tar.gz --with-parmetis=yes
--download-parmetis=/home/ptorres/soft/ParMetis-dev-p3.tar.gz
--with-mpich-dir=/etc/mpich2 --download-f-blas-lapack=ifneeded<br><br> make ex2<br>mpicxx -o ex2.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -g -I/opt/petsc/petsc-dev/src/dm/mesh/sieve -I/opt/petsc/petsc-dev/externalpackages/Boost/ -I/usr/include -I/opt/petsc/petsc-dev/linux-gnu-c-debug/include -I/opt/petsc/petsc-dev/include -I/usr/include -I/opt/petsc/petsc-dev/linux-gnu-c-debug/include -I/opt/petsc/petsc-dev/externalpackages/Boost/ -D__SDIR__=&quot;src/dm/mesh/examples/tutorials/&quot; ex2.c<br>


ex2.c:19:24: erro: Generator.hh: Arquivo ou diretório inexistente<br>No arquivo incluído de ex2.c:20:<br>/opt/petsc/petsc-dev/include/petscmesh.h:7:19: erro: Mesh.hh: Arquivo ou diretório inexistente<br>/opt/petsc/petsc-dev/include/petscmesh.h:8:29: erro: CartesianSieve.hh: Arquivo ou diretório inexistente<br>


/opt/petsc/petsc-dev/include/petscmesh.h:9:27: erro: Distribution.hh: Arquivo ou diretório inexistente<br>ex2.c:22:38: erro: ../src/dm/mesh/meshpcice.h: Arquivo ou diretório inexistente<br>In file included from ex2.c:20:<br>


/opt/petsc/petsc-dev/include/petscmesh.h:108: erro: âALEâ has not been declared<br>/opt/petsc/petsc-dev/include/petscmesh.h:108: erro: expected â,â or â...â before â&lt;â token<br>/opt/petsc/petsc-dev/include/petscmesh.h:109: erro: expected â,â or â...â before â::â token<br>


/opt/petsc/petsc-dev/include/petscmesh.h:109: erro: ISO C++ forbids declaration of âALEâ with no type<br>/opt/petsc/petsc-dev/include/petscmesh.h:121: erro: expected â,â or â...â before â::â token<br>/opt/petsc/petsc-dev/include/petscmesh.h:121: erro: ISO C++ forbids declaration of âALEâ with no type<br>


/opt/petsc/petsc-dev/include/petscmesh.h:122: erro: expected â,â or â...â before â::â token<br>/opt/petsc/petsc-dev/include/petscmesh.h:122: erro: ISO C++ forbids declaration of âALEâ with no type<br>/opt/petsc/petsc-dev/include/petscmesh.h:123: erro: expected â,â or â...â before â::â token<br>


/opt/petsc/petsc-dev/include/petscmesh.h:123: erro: ISO C++ forbids declaration of âALEâ with no type<br>/opt/petsc/petsc-dev/include/petscmesh.h:124: erro: expected â,â or â...â before â::â token<br>/opt/petsc/petsc-dev/include/petscmesh.h:124: erro: ISO C++ forbids declaration of âALEâ with no type<br>


/opt/petsc/petsc-dev/include/petscmesh.h:147: erro: âALEâ has not been declared<br>/opt/petsc/petsc-dev/include/petscmesh.h:147: erro: expected â,â or â...â before â&lt;â token<br>/opt/petsc/petsc-dev/include/petscmesh.h:148: erro: expected â,â or â...â before â::â token<br>


/opt/petsc/petsc-dev/include/petscmesh.h:148: erro: ISO C++ forbids declaration of âALEâ with no type<br>/opt/petsc/petsc-dev/include/petscmesh.h:169: erro: âALEâ has not been declared<br>/opt/petsc/petsc-dev/include/petscmesh.h:169: erro: expected â,â or â...â before â&lt;â token<br>


/opt/petsc/petsc-dev/include/petscmesh.h:170: erro: expected â,â or â...â before â::â token<br>/opt/petsc/petsc-dev/include/petscmesh.h:170: erro: ISO C++ forbids declaration of âALEâ with no type<br>/opt/petsc/petsc-dev/include/petscmesh.h:171: erro: âALEâ has not been declared<br>


/opt/petsc/petsc-dev/include/petscmesh.h:171: erro: expected â,â or â...â before â&lt;â token<br>/opt/petsc/petsc-dev/include/petscmesh.h:172: erro: expected â,â or â...â before â::â token<br>/opt/petsc/petsc-dev/include/petscmesh.h:172: erro: ISO C++ forbids declaration of âALEâ with no type<br>


/opt/petsc/petsc-dev/include/petscmesh.h:234: erro: âALEâ has not been declared<br>/opt/petsc/petsc-dev/include/petscmesh.h:234: erro: expected â,â or â...â before â&lt;â token<br>/opt/petsc/petsc-dev/include/petscmesh.h:235: erro: expected â,â or â...â before â::â token<br>


/opt/petsc/petsc-dev/include/petscmesh.h:235: erro: ISO C++ forbids declaration of âALEâ with no type<br>/opt/petsc/petsc-dev/include/petscmesh.h:236: erro: âALEâ has not been declared<br>/opt/petsc/petsc-dev/include/petscmesh.h:236: erro: expected â,â or â...â before â&lt;â token<br>


/opt/petsc/petsc-dev/include/petscmesh.h:237: erro: expected â,â or â...â before â::â token<br>/opt/petsc/petsc-dev/include/petscmesh.h:237: erro: ISO C++ forbids declaration of âALEâ with no type<br>ex2.c:24: erro: âALEâ has not been declared<br>


ex2.c:42: erro: expected â,â or â...â before â&lt;â token<br>ex2.c:42: erro: ISO C++ forbids declaration of âObjâ with no type<br>ex2.c:43: erro: expected â,â or â...â before â&lt;â token<br>ex2.c:43: erro: ISO C++ forbids declaration of âObjâ with no type<br>


ex2.c: In function âint main(int, char**)â:<br>ex2.c:76: erro: expected type-specifier before âALEâ<br>ex2.c:76: erro: expected `)&#39; before â::â token<br>ex2.c:76: erro: expected `{&#39; before â::â token<br>ex2.c:76: erro: â::Exceptionâ has not been declared<br>


ex2.c:76: erro: expected `;&#39; before âeâ<br>ex2.c: At global scope:<br>ex2.c:137: erro: expected â,â or â...â before â::â token<br>ex2.c:137: erro: ISO C++ forbids declaration of âALEâ with no type<br>ex2.c: In function âPetscErrorCode CreateSquareBoundary(int)â:<br>


ex2.c:148: erro: âALEâ is not a class or namespace<br>ex2.c:148: erro: expected initializer before âpatchâ<br>ex2.c:151: erro: âALEâ is not a class or namespace<br>ex2.c:151: erro: expected `;&#39; before âverticesâ<br>ex2.c:152: erro: expected initializer before â&lt;â token<br>


ex2.c:153: erro: expected initializer before â&lt;â token<br>ex2.c:156: erro: âmeshâ was not declared in this scope<br>ex2.c:157: erro: âALEâ is not a class or namespace<br>ex2.c:157: erro: expected `;&#39; before âedgeâ<br>


ex2.c:161: erro: âverticesâ was not declared in this scope<br>ex2.c:161: erro: âALEâ is not a class or namespace<br>ex2.c:164: erro: âedgeâ was not declared in this scope<br>ex2.c:164: erro: âALEâ is not a class or namespace<br>


ex2.c:165: erro: âsieveâ was not declared in this scope<br>ex2.c:165: erro: âverticesâ was not declared in this scope<br>ex2.c:168: erro: âedgeâ was not declared in this scope<br>ex2.c:168: erro: âALEâ is not a class or namespace<br>


ex2.c:169: erro: âsieveâ was not declared in this scope<br>ex2.c:169: erro: âverticesâ was not declared in this scope<br>ex2.c:171: erro: âALEâ is not a class or namespace<br>ex2.c:174: erro: âALEâ is not a class or namespace<br>


ex2.c:177: erro: âALEâ is not a class or namespace<br>ex2.c:181: erro: âsieveâ was not declared in this scope<br>ex2.c:182: erro: âtopologyâ was not declared in this scope<br>ex2.c:182: erro: âpatchâ was not declared in this scope<br>


ex2.c:184: erro: âmeshâ was not declared in this scope<br>ex2.c:185: erro: âALEâ is not a class or namespace<br>ex2.c:185: erro: âALEâ is not a class or namespace<br>ex2.c:185: erro: â::buildCoordinatesâ has not been declared<br>


ex2.c:187: erro: expected initializer before â&lt;â token<br>ex2.c:191: erro: âmarkersâ was not declared in this scope<br>ex2.c:194: erro: âmarkersâ was not declared in this scope<br>ex2.c: At global scope:<br>ex2.c:213: erro: expected â,â or â...â before â::â token<br>


ex2.c:213: erro: ISO C++ forbids declaration of âALEâ with no type<br>ex2.c: In function âPetscErrorCode CreateMeshBoundary(MPI_Comm, _p_Mesh**, Options*)â:<br>ex2.c:347: erro: âObjâ was not declared in this scope<br>ex2.c:347: erro: âALEâ has not been declared<br>


ex2.c:347: erro: âmâ was not declared in this scope<br>ex2.c:355: erro: expected initializer before â&lt;â token<br>ex2.c:356: erro: expected initializer before â&lt;â token<br>ex2.c:357: erro: expected initializer before â&lt;â token<br>


ex2.c:358: erro: expected initializer before â&lt;â token<br>ex2.c:360: erro: âALEâ has not been declared<br>ex2.c:360: erro: expected `;&#39; before âv_iterâ<br>ex2.c:360: erro: âv_iterâ was not declared in this scope<br>


ex2.c:360: erro: âverticesâ was not declared in this scope<br>ex2.c:361: erro: âtopologyâ was not declared in this scope<br>ex2.c:361: erro: âmarkersâ was not declared in this scope<br>ex2.c:363: erro: âALEâ has not been declared<br>


ex2.c:363: erro: expected `;&#39; before âe_iterâ<br>ex2.c:363: erro: âe_iterâ was not declared in this scope<br>ex2.c:363: erro: âedgesâ was not declared in this scope<br>ex2.c:364: erro: âtopologyâ was not declared in this scope<br>


ex2.c:364: erro: âmarkersâ was not declared in this scope<br>ex2.c:373: erro: âALEâ has not been declared<br>ex2.c:375: erro: expected type-specifier before âALEâ<br>ex2.c:375: erro: expected `;&#39; before âALEâ<br>ex2.c: In function âPetscErrorCode CreateMesh(_p_Mesh*, _p_Mesh**, Options*)â:<br>


ex2.c:393: erro: âObjâ was not declared in this scope<br>ex2.c:393: erro: âALEâ has not been declared<br>ex2.c:393: erro: âmâ was not declared in this scope<br>ex2.c:397: erro: âALEâ has not been declared<br>ex2.c:397: erro: expected `;&#39; before âstageâ<br>


ex2.c:398: erro: âALEâ has not been declared<br>ex2.c:398: erro: âstageâ was not declared in this scope<br>ex2.c:402: erro: âALEâ has not been declared<br>ex2.c:404: erro: expected initializer before â&lt;â token<br>ex2.c:405: erro: âtopologyâ was not declared in this scope<br>


ex2.c: In function âPetscErrorCode DistributeMesh(_p_Mesh**, Options*)â:<br>ex2.c:424: erro: âALEâ has not been declared<br>ex2.c:424: erro: expected `;&#39; before âstageâ<br>ex2.c:425: erro: âALEâ has not been declared<br>


ex2.c:425: erro: âstageâ was not declared in this scope<br>ex2.c:428: erro: cannot convert â_p_Mesh**â to âconst char*â for argument â2â to âPetscErrorCode MeshDistribute(_p_Mesh*, const char*, _p_Mesh**)â<br>ex2.c:434: erro: âALEâ has not been declared<br>


ex2.c: In function âPetscErrorCode RefineMesh(_p_Mesh**, Options*)â:<br>ex2.c:450: erro: âALEâ has not been declared<br>ex2.c:450: erro: expected `;&#39; before âstageâ<br>ex2.c:451: erro: âALEâ has not been declared<br>

ex2.c:451: erro: âstageâ was not declared in this scope<br>
ex2.c:460: erro: âALEâ has not been declared<br>ex2.c: In function âPetscErrorCode OutputVTK(_p_Mesh*, Options*)â:<br>ex2.c:475: erro: âALEâ has not been declared<br>ex2.c:475: erro: expected `;&#39; before âstageâ<br>ex2.c:476: erro: âALEâ has not been declared<br>


ex2.c:476: erro: âstageâ was not declared in this scope<br>ex2.c:494: erro: âALEâ has not been declared<br>ex2.c: In function âPetscErrorCode CreatePartition(_p_Mesh*)â:<br>ex2.c:504: erro: âObjâ was not declared in this scope<br>


ex2.c:504: erro: âALEâ has not been declared<br>ex2.c:504: erro: âmâ was not declared in this scope<br>ex2.c:509: erro: âALE_LOG_EVENT_BEGINâ was not declared in this scope<br>ex2.c:510: erro: invalid conversion from âintâ to âconst char*â<br>


ex2.c:510: erro: invalid conversion from â_p_SectionInt**â to âPetscIntâ<br>/opt/petsc/petsc-dev/include/petscmesh.h:254: erro: too few arguments to function âPetscErrorCode MeshGetCellSectionInt(_p_Mesh*, const char*, PetscInt, _p_SectionInt**)â<br>


ex2.c:510: erro: at this point in file<br>ex2.c:514: erro: âALEâ has not been declared<br>ex2.c:514: erro: expected initializer before âpatchâ<br>ex2.c:515: erro: expected initializer before â&lt;â token<br>ex2.c:516: erro: expected initializer before â&lt;â token<br>


ex2.c:517: erro: âALEâ has not been declared<br>ex2.c:517: erro: expected initializer before âendâ<br>ex2.c:518: erro: âALEâ has not been declared<br>ex2.c:518: erro: expected initializer before ârankâ<br>ex2.c:520: erro: âALEâ has not been declared<br>


ex2.c:520: erro: expected `;&#39; before âc_iterâ<br>ex2.c:520: erro: âc_iterâ was not declared in this scope<br>ex2.c:520: erro: âendâ was not declared in this scope<br>ex2.c:521: erro: ârankâ was not declared in this scope<br>


ex2.c:524: erro: âALE_LOG_EVENT_ENDâ was not declared in this scope<br>make: [ex2.o] Erro 1 (ignorado)<br>mpicxx -Wall -Wwrite-strings -Wno-strict-aliasing -g  -o ex2 ex2.o  -Wl,-rpath,/opt/petsc/petsc-dev/linux-gnu-c-debug/lib -L/opt/petsc/petsc-dev/linux-gnu-c-debug/lib -lpetscdm -lpetscmat -lpetscvec -lpetsc     -lX11 -Wl,-rpath,/opt/petsc/petsc-dev/linux-gnu-c-debug/lib -L/opt/petsc/petsc-dev/linux-gnu-c-debug/lib -lparmetis -lmetis -llapack -lblas -L/usr/lib/gcc/x86_64-linux-gnu/4.2.4 -ldl -lgcc_s -lgfortran -lm -lm -lstdc++ -lstdc++ -ldl -lgcc_s -ldl<br>


c++: ex2.o: Arquivo ou diretório inexistente<br>make: [ex2] Erro 1 (ignorado)<br>/bin/rm -f -f ex2.o<br><br><br><br><br>