Topic: Compilation error when compiling with Spooles

Hi!

I get an error message when trying to compile with the Spooles solver. The version of oofem I am using is 1.9. The configuration command is

./configure --enable-spooles --with-SPOOLESDIR=/home/carl/dev/spooles.2.2/

and the I run 'make all'. The output is

In file included from /home/carl/dev/oofem_workspace/oofem_project/src/sm/hellmat.h:31,
                 from /home/carl/dev/oofem_workspace/oofem_project/src/main/usrdefsub.C:176:
/home/carl/dev/oofem_workspace/oofem_project/src/sm/hydram.h:144: warning: ‘typedef’ was ignored in this declaration
/home/carl/dev/oofem_workspace/oofem_project/src/sm/hydram.h:145: warning: ‘typedef’ was ignored in this declaration
In file included from /home/carl/dev/oofem_workspace/oofem_project/src/main/usrdefsub.C:176:
/home/carl/dev/oofem_workspace/oofem_project/src/sm/hellmat.h:57: warning: ‘typedef’ was ignored in this declaration
In file included from /home/carl/dev/oofem_workspace/oofem_project/src/fm/leplic.h:40,
                 from /home/carl/dev/oofem_workspace/oofem_project/src/fm/tr1_2d_supg.h:54,
                 from /home/carl/dev/oofem_workspace/oofem_project/src/main/usrdefsub.C:246:
/home/carl/dev/oofem_workspace/oofem_project/src/oofemlib/geotoolbox.h:157: error: using typedef-name ‘Graph’ after ‘class’
/home/carl/dev/spooles.2.2/misc/../ETree/../Graph/Graph.h:49: error: ‘Graph’ has a previous declaration here
make[1]: *** [usrdefsub.o] Error 1
make[1]: Leaving directory `/home/carl/dev/oofem_workspace/oofem_project/targets/default/lib/main'
make: *** [all] Error 2


/Carl

2

Re: Compilation error when compiling with Spooles

Hi Carl,

this is name resolution conflict, caused by the fact, that both oofem and spooles define an entity named "Graph". At the beginning, I was looking for quick fix to reported problem, but later I have decided to follow a generic approach, consisting in encapsulating the oofem into its own namespace.
As this is rather complex change, affecting all sources, I made this change in development version only.
So if you are willing to use spooles solver, please download and use the recent development version (see http://www.oofem.org/wiki/doku.php?id=installation for description, how to get and install svn sources). And do not worry about using development version - it is fully functional and usually even better than release version, as it contains many bug fixes.

Merry Christmas and a Happy New Year,
Borek