<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">gaurish108@telang:~/Desktop/LSQR_progress$ make main<br>/home/gaurish108/software/petsc-dev/linux-gnu-c/bin/mpicc -o main.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -I/home/gaurish108/software/petsc-dev/include -I/home/gaurish108/software/petsc-dev/linux-gnu-c/include -D__INSDIR__= main.c<br>


main.c: In function ‘main’:<br>main.c:17: error: ‘PetscTruth’ undeclared (first use in this function)<br>main.c:17: error: (Each undeclared identifier is reported only once<br>main.c:17: error: for each function it appears in.)<br>


main.c:17: error: expected ‘;’ before ‘flg_b’<br>main.c:26: error: ‘flg_b’ undeclared (first use in this function)<br></blockquote><div><br></div><div>This error is because in petsc-dev PetscTruth changed to PetscBool:</div>

<div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/changes/dev.html">http://www.mcs.anl.gov/petsc/petsc-as/documentation/changes/dev.html</a></div><div><br></div><div>&quot;Changed PetscTruth to PetscBool, PETSC_TRUTH to PETSC_BOOL, PetscOptionsTruth to PetscOptionsBool, etc.&quot;</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">main.c:27: error: macro &quot;SETERRQ&quot; requires 3 arguments, but only 2 given<br>main.c:27: error: ‘SETERRQ’ undeclared (first use in this function)</blockquote>

<div><br></div><div>Also, SETERRQX changed:</div><div><br></div><div>&quot;PetscError() and SETERRQX() now take a MPI_Comm as the first argument to indicate where the error is known. If you don&#39;t know what communicator use then pass in PETSC_COMM_SELF&quot;</div>

<div><br></div><div>Hope that helps,</div><div><br></div><div>Sean </div></div>