---------- Forwarded message ----------
Date: Wed, 23 Mar 2011 11:31:30 -0500
From: Ataollah Mesgarnejad <amesga1@...>
To: Roy Stogner <roystgnr@...>
Subject: Re: [Libmesh-users] Mesh is ambiguous
I tried compiling without MESH but now I get the following error:
Compiling C++ (in optimized mode) src/utils/xdr_cxx.C...
ld: src/base/dof_map.x86_64-unknown-linux-gnu.opt.o: relocation R_X86_64_32S against `_ZTV23variant_filter_iteratorIN7libMesh10Predicates15multi_predicateEPNS0_4ElemERS4_PS4_E' can not be used when making a shared object; recompile with -fPIC
src/base/dof_map.x86_64-unknown-linux-gnu.opt.o: could not read symbols: Bad value
make: *** [/usr/local/packages/libmesh/lib/x86_64-unknown-linux-gnu_opt/libmesh.so] Error 1
On Mar 13, 2011, at 1:00 PM, Roy Stogner wrote:
> On Sun, 13 Mar 2011, Ataollah Mesgarnejad wrote:
>> I tried compiling Libmesh with petsc-3.1-p6 and p7 but with both I get bunch of errors all concerning Mesh:
>> Compiling C++ (in optimized mode) src/numerics/sparse_matrix.C...
>> /Users/ataollahmesgarnejad/Software/petsc-3.1-p6//include/petscmesh.h(47): error: "Mesh" is ambiguous
>> EXTERN PetscErrorCode PETSCDM_DLLEXPORT MeshView(Mesh, PetscViewer);
>> any idea what is going wrong?
> Looks like a conflict between libMesh::Mesh and
> DoesPetscUseNamespaces?::Mesh... Not sure what the easiest fix is
> going to be, but I'll try and check it out on my home system tonight.
> Worst case scenario, we're going to need some more using declarations
> What were your PETSc configure options?