On Mon, Apr 4, 2011 at 1:41 PM, Gaurish Telang <gaurish108 at gmail.com> wrote:

> Hi,
>
> I have installed two versions of PETSc on my computer,  the debug version
> petsc-3.1.p7 and petsc-dev.
>
> However, when I try to compile my codes  with petsc-dev(which were
> successfully compiled and executed under the first version)
> I get lots of compile errors.
>
> Why could this be happening? I have pasted the error message below.
>

http://www.mcs.anl.gov/petsc/petsc-as/documentation/changes/dev.html

The first item.

   Matt


> gaurish108 at telang:~/Desktop/LSQR_progress$ $PETSC_DIR
> bash: /home/gaurish108/software/petsc-dev: is a directory
>
> gaurish108 at telang:~/Desktop/LSQR_progress$ make main
> /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
> main.c: In function ?main?:
> main.c:17: error: ?PetscTruth? undeclared (first use in this function)
> main.c:17: error: (Each undeclared identifier is reported only once
> main.c:17: error: for each function it appears in.)
> main.c:17: error: expected ?;? before ?flg_b?
> main.c:26: error: ?flg_b? undeclared (first use in this function)
> main.c:27: error: macro "SETERRQ" requires 3 arguments, but only 2 given
> main.c:27: error: ?SETERRQ? undeclared (first use in this function)
> main.c:30: warning: passing argument 1 of ?VecLoad? from incompatible
> pointer type
> /home/gaurish108/software/petsc-dev/include/petscvec.h:419: note: expected
> ?Vec? but argument is of type ?PetscViewer?
> main.c:30: warning: passing argument 2 of ?VecLoad? from incompatible
> pointer type
> /home/gaurish108/software/petsc-dev/include/petscvec.h:419: note: expected
> ?PetscViewer? but argument is of type ?const char *?
> main.c:30: error: too many arguments to function ?VecLoad?
> main.c:37: error: ?flg_A? undeclared (first use in this function)
> main.c:38: error: macro "SETERRQ" requires 3 arguments, but only 2 given
> main.c:41: warning: passing argument 1 of ?MatLoad? from incompatible
> pointer type
> /home/gaurish108/software/petsc-dev/include/petscmat.h:493: note: expected
> ?Mat? but argument is of type ?PetscViewer?
> main.c:41: warning: passing argument 2 of ?MatLoad? from incompatible
> pointer type
> /home/gaurish108/software/petsc-dev/include/petscmat.h:493: note: expected
> ?PetscViewer? but argument is of type ?const char *?
> main.c:41: error: too many arguments to function ?MatLoad?
> make: [main.o] Error 1 (ignored)
> /home/gaurish108/software/petsc-dev/linux-gnu-c/bin/mpicc -Wall
> -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3  -o main
> main.o -L/home/gaurish108/software/petsc-dev/linux-gnu-c/lib  -lpetsc -lX11
> -Wl,-rpath,/home/gaurish108/software/petsc-dev/linux-gnu-c/lib -lflapack
> -lfblas -lm -L/usr/lib/gcc/i686-linux-gnu/4.4.5 -L/usr/lib/i686-linux-gnu
> -ldl -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -lmpichf90 -lgfortran -lm
> -lm -ldl -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -ldl
> gcc: main.o: No such file or directory
> make: [main] Error 1 (ignored)
> /bin/rm -f main.o
> gaurish108 at telang:~/Desktop/LSQR_progress$ $PETSC_DIR
> bash: /home/gaurish108/software/petsc-dev: is a directory
> gaurish108 at telang:~/Desktop/LSQR_progress$
>
>


-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110404/dc6dcd24/attachment.htm>

Reply via email to