itaps-parallel Name mangling in MOAB
Tim Tautges
tautges at mcs.anl.gov
Wed Nov 12 15:29:14 CST 2008
Hi all,
See
http://trac.mcs.anl.gov/projects/ITAPS/browser/MOAB/trunk/configure.in,
lines 31-33. If the script finds a fortran compiler, it runs that
macro. That generates definitions for FC_FUNC and FC_FUNC_. Then, at
line 869 in configure.in, AC_CONFIG_HEADERS is called to produce
MBCN_FCDefs.h, which contains substituted definitions for FC_FUNC and
FC_FUNC_. Those macros are used in iMesh_protos.h
(http://trac.mcs.anl.gov/projects/ITAPS/browser/MOAB/trunk/tools/iMesh/iMesh_protos.h)
to mangle the imesh function names.
If you're doing this in FMDB, it's probably easier to eliminate going
through MBCN_FCDefs.h or equivalent and call AC_CONFIG_HEADERS directly
on iMesh.h, though you'll have to make a iMesh.h.in file for that to
work properly.
Any questions, let me know.
- tim
--
================================================================
"You will keep in perfect peace him whose mind is
steadfast, because he trusts in you." Isaiah 26:3
Tim Tautges Argonne National Laboratory
(tautges at mcs.anl.gov) (telecommuting from UW-Madison)
phone: (608) 263-8485 1500 Engineering Dr.
fax: (608) 263-4499 Madison, WI 53706
More information about the itaps-parallel
mailing list