[MOAB-dev] (compiler ?) errors with xlc

acaceres at mcs.anl.gov acaceres at mcs.anl.gov
Fri Mar 19 15:09:49 CDT 2010


sorry if you get this twice, not clear if it went through...

---
Hi,

Are both of these methods needed?

inline ErrorCode ParallelComm::get_owner(EntityHandle entity, int &owner)
inline ErrorCode ParallelComm::get_owner(EntityHandle entity, EntityID &owner)

IBM's XL compiler can't seem to distinguish them, at least on one particular system, and gives the following error:

"moab/ParallelComm.hpp", line 288.13: 1540-0401 (S) The member "moab::ParallelComm::get_owner(EntityHandle, EntityID &)" is already declared.
"moab/ParallelComm.hpp", line 287.13: 1540-0424 (I) "get_owner" is declared on line 287 of "moab/ParallelComm.hpp".


Commenting out one of the methods (the int& one) seems to fix things.


I also had to make the following change to get things to compile:
--- src/Core.cpp        (revision 3670)
+++ src/Core.cpp        (working copy)
@@ -1197,8 +1197,8 @@
                              Range& adj_entities )
 {
   std::vector<EntityHandle> results;
-  ErrorCode rval = get_adjacencies_intersection( mb, begin, end, to_dimension,
-                                                   create_if_missing, results );
+  ErrorCode rval = moab::get_adjacencies_intersection( mb, begin, end, to_dimension,
+                                                       create_if_missing, results );
   if (MB_SUCCESS != rval)
     return rval;



Finally, --enable-parallel doesn't imply the -DUSE_MPI switch, don't know if that's intentional.


More information about the moab-dev mailing list