link error
Satish Balay
balay at mcs.anl.gov
Wed Feb 11 20:28:34 CST 2009
This truncated message is not useful... Please send complete compile
commands - when encountering compile errors.
Which PETSc example is this? Are you using a PETSc makefile?
Satish
On Wed, 11 Feb 2009, Yixun Liu wrote:
> Hi,
> I compile petsc successfully, but when I run a simple petsc example,
> some errors appear. It seems that I miss x11 lib.
>
> /home/scratch/yixun/petsc-3.0.0-p3/linux-gnu-c-debug/lib/libpetsc.a(xops.o):
> In function `PetscDrawLine_X':
> /home/scratch/yixun/petsc-3.0.0-p3/src/sys/draw/impls/x/xops.c:29:
> undefined reference to `XSetForeground'
> /home/scratch/yixun/petsc-3.0.0-p3/src/sys/draw/impls/x/xops.c:32:
> undefined reference to `XDrawLine'
> /home/scratch/yixun/petsc-3.0.0-p3/linux-gnu-c-debug/lib/libpetsc.a(xops.o):
> In function `PetscDrawPoint_X':
> /home/scratch/yixun/petsc-3.0.0-p3/src/sys/draw/impls/x/xops.c:45:
> undefined reference to `XSetForeground'
> /home/scratch/yixun/petsc-3.0.0-p3/src/sys/draw/impls/x/xops.c:46:
> undefined reference to `XDrawPoint'
>
>
> Thanks.
>
More information about the petsc-users
mailing list