[petsc-dev] PetscTruth is Missing?

Ryan Yan vyan2000 at gmail.com
Tue Nov 30 17:01:39 CST 2010


Dear PETSc Team,
Has the PetscTruth been removed in PETSc-dev?

I have the following code


#include "petscksp.h"
#include "petscsys.h"
int main(int argc,char **args){

PetscTruth     flg;


}

In my make file I have the following:
include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules

rpi_scale: rpi_scale.o  chkopts
  -${CLINKER} -o rpi_scale rpi_scale.o ${PETSC_KSP_LIB}
  ${RM} rpi_scale.o


include ${PETSC_DIR}/conf/test


When I compile the code:
[17:45:51 yyan at octopus1 bin.9cell]: make rpi_scale
/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
rpi_scale.c: In function ‘main’:
rpi_scale.c:18: error: ‘PetscTruth’ undeclared (first use in this function)
rpi_scale.c:18: error: (Each undeclared identifier is reported only once
rpi_scale.c:18: error: for each function it appears in.)
rpi_scale.c:18: error: expected ‘;’ before ‘flg’
rrpi_scale.c:53: warning: control reaches end of non-void function
make: [rpi_scale.o] Error 1 (ignored)
/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
cc: rpi_scale.o: No such file or directory
make: [rpi_scale] Error 1 (ignored)
/bin/rm -f rpi_scale.o



And I did not see the macro for PetscTruth.
/home/yyan/local/petsc-dev/include/petscsys.h

Any hint will be helpful...

Thanks,

Yan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20101130/9454a4a9/attachment.html>


More information about the petsc-dev mailing list