[MOAB-dev] MBCN bug with Fortran

Jason Kraftcheck kraftche at cae.wisc.edu
Tue Mar 30 14:16:20 CDT 2010


Wollaber, Allan B. wrote:
> To Whom it May Concern:
> 
> I have just updated our installed version of MOAB to match what's in the
> repo and I got a linking error (object not found) for the FORTRAN
> interface of the MBCN functions (such as MBCN_VerticesPerEntity).  I
> traced this to the following macro definition error in
> moab/src/MBCN_protos.h: the preprocessor macro MBCN_FC_FUNC_ never gets
> defined, so the interfaces in moab/src/MBCN.h never get exposed. After
> replacing MBCN_FC_FUNC_ with MOAB_FC_FUNC_ , everything works fine.
> Since it looks like these files are generated in the configure process,
> it's possible that this is a simple fix (just add MBCN_FC_FUNC_ to
> wherever MOAB_FC_FUNC_ is getting set).
> 

Thank you for locating and reporting this issue.  I have corrected this
mistake in subversion revision r3728.  I've included the diff for the fix below.

- jason




--- MOAB/trunk/src/Makefile.am	2010-03-30 15:49:23 UTC (rev 3727)
+++ MOAB/trunk/src/Makefile.am	2010-03-30 19:05:48 UTC (rev 3728)
@@ -151,7 +151,7 @@
   MBCN_protos.h

 MBCN_protos.h: MBCN.h $(top_srcdir)/itaps/mkprotos.sh
-	$(top_srcdir)/itaps/mkprotos.sh MBCN MBCN $< $@ MOAB_FCDefs.h
+	$(top_srcdir)/itaps/mkprotos.sh MBCN MOAB $< $@ MOAB_FCDefs.h


 MOAB_FCDefs.h: FCDefs.h


More information about the moab-dev mailing list