Dear PETSc Team,<br>Has the PetscTruth been removed in PETSc-dev?<br><br>I have the following code<br><br><br>#include "petscksp.h"<br>#include "petscsys.h"<br>int main(int argc,char **args){<br><br>PetscTruth     flg;<br>
<br><br>}<br><br>In my make file I have the following:<br>include ${PETSC_DIR}/conf/variables<br>include ${PETSC_DIR}/conf/rules<br><br>rpi_scale: rpi_scale.o  chkopts<br>  -${CLINKER} -o rpi_scale rpi_scale.o ${PETSC_KSP_LIB}<br>
  ${RM} rpi_scale.o<br><br><br>include ${PETSC_DIR}/conf/test<br><br><br>When I compile the code:<br>[17:45:51 yyan@octopus1 bin.9cell]: make rpi_scale<br>/home/antals/MPI/mpich-1.2.7p1/bin/mpicc -o rpi_scale.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -I/home/yyan/local/petsc-dev/include -I/home/yyan/local/petsc-dev/O-hypre-debug/include -I/home/antals/MPI/mpich-1.2.7p1/include -D__INSDIR__= rpi_scale.c<br>
rpi_scale.c: In function ‘main’:<br>rpi_scale.c:18: error: ‘PetscTruth’ undeclared (first use in this function)<br>rpi_scale.c:18: error: (Each undeclared identifier is reported only once<br>rpi_scale.c:18: error: for each function it appears in.)<br>
rpi_scale.c:18: error: expected ‘;’ before ‘flg’<br>rrpi_scale.c:53: warning: control reaches end of non-void function<br>make: [rpi_scale.o] Error 1 (ignored)<br>/home/antals/MPI/mpich-1.2.7p1/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -o rpi_scale rpi_scale.o -L/home/yyan/local/petsc-dev/O-hypre-debug/lib  -lpetsc -lX11 -Wl,-rpath,/home/yyan/local/petsc-dev/O-hypre-debug/lib -lHYPRE -lpmpich++ -lstdc++ -lflapack -lfblas -L/home/antals/MPI/mpich-1.2.7p1/lib -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -ldl -lmpich -lpthread -lrt -lgcc_s -lg2c -lm -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -lm -lpmpich++ -lstdc++ -lpmpich++ -lstdc++ -ldl -lmpich -lpthread -lrt -lgcc_s -ldl <br>
cc: rpi_scale.o: No such file or directory<br>make: [rpi_scale] Error 1 (ignored)<br>/bin/rm -f rpi_scale.o<br><br><br><br>And I did not see the macro for PetscTruth.<br>/home/yyan/local/petsc-dev/include/petscsys.h<br><br>
Any hint will be helpful...<br><br>Thanks,<br><br>Yan<br>