[MOAB-dev] Re: Problems linking to MOAB

Jason Kraftcheck kraftche at cae.wisc.edu
Mon Aug 11 16:42:46 CDT 2008


 Neil Hodge wrote:
> Tim:
>
> I am currently trying to link our code to MOAB, including libiMesh. 
> The link line is
>
> mpCC_r -g -q64 -brtl -blpdata -bmaxdata:0x600000000 -L... -o
> diablo_debug ../objs_debug/diablo_lib_main.o\
>  -L ../lib_debug -ldiablo
> -L/g/g22/hodge3/data/projects/diablo/itaps/Diablo_II/Build/DIABLO-aix_5_64_fed-UP/Libraries/METIS/metis-4.0/aix_5_64bit/
> -L/usr/apps/mdg/lib -L/usr/gapps/silo/4.5/aix_5_64_fed/lib
> -L/usr/local/tools/hdf5/hdf5-1.6.5/serial/lib
> -L/g/g22/hodge3/data/projects/diablo/itaps/Diablo_II/Build/DIABLO-aix_5_64_fed-UP/Libraries/PWSSMP/wssmp/aix_5_64bit
> -L/g/g22/hodge3/data/projects/diablo/itaps/Diablo_II/Build/DIABLO-aix_5_64_fed-UP/Libraries/HYPRE/hypre-2.0.0/aix_5_64_fed
> -L/g/g22/hodge3/data/projects/diablo/itaps/Diablo_II/Build/DIABLO-aix_5_64_fed-UP/Libraries/NASA
> -L/usr/local/lib
> -L/g/g22/hodge3/data/projects/diablo/itaps/Diablo_II/Libraries/ITAPS
> -L/usr/local/lib -lm -lblas -lxlf90 -lc -lmetis -lmili -lsilo
> -lhdf5_fortran -lhdf5 -lHYPRE -lvss_ibm -lpwsmp64 -llapack -liMesh_ibm
> -lMOAB_ibm
>
>
> I am getting the following error:
>
> ld: 0711-317 ERROR: Undefined symbol:
> .MBRange::subset_by_type(MBEntityType)
>
> Although, when I check libMOAB with nm and dump, subset_by_type is
> clearly there.
>
> I am trying this on AIX.  Any thoughts?
>

This is an odd one.  There were no errors for other MBRange functions?

I haven't worked with AIX much and don't have access to an AIX machine right
now.  Is there any significance to the '.' prefix on the function name?  Did
ld provide any more information with the above error message, such as where
it encountered the reference to .MBRange::subset_by_type that it could not
resolve?

- jason




More information about the moab-dev mailing list