On Wed, 20 Jan 2010, Yujie wrote:

> /home/yujie/codes/codes/libmesh/lib/i686-pc-linux-gnu_dbg/libmesh.so: 
> undefined reference to `PCCreate(_comm*, _p_PC**)'
> /home/yujie/codes/codes/libmesh/lib/i686-pc-linux-gnu_dbg/libmesh.so: 
> undefined reference to `MatCreateMPIAIJ(_comm*, int, int, int, int, int, int
> const*, int, int const*, _p_Mat**)'
> /home/yujie/codes/codes/libmesh/lib/i686-pc-linux-gnu_dbg/libmesh.so: 
> undefined reference to `VecCreateSeq(_comm*, int, _p_Vec**)'
> collect2: ld returned 1 exit status
> mpiCC: No such file or directory
> make: *** [bin/amr-dbg] Error 1"
> 
> I have included all the libs of PETSc. I also "make test" in PETSc. It works. 
> I don't know why libmesh.so can't find the reference to the above
> functions. Your linker problem is the same with me?

Try "make -C contrib clean" and then recompiling.  That fixed some
cruft for me; not sure if it's the same underlying problem for you.

> Whether can I avoid to compile amr-dbg? I don't think I will use it. Thanks a 
> lot.

If the problem is only with amr-dbg, you're fine.  But while that's
happened before (a bug in a third-party mpicxx script affected our
tool linkage but not our example or application linkage) it's not
likely.  Can you compile the examples?
---
Roy

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to