Hi Olena devs,
I'm trying to play with a graph watershed example Roland gave me but I'm having troubles with a quite recent gcc compiler (4.6.1) which refuses to define un-initialised const member. I cut/paste the build error below. For the build, I use cmake with the default compiler and default compiler options.
regards,
david
[100%] Building CXX object CMakeFiles/myWatershed.dir/myWatershed.cpp.o
In file included from /usr/local/include/mln/accu/transform_directional.hh:47:0,
from /usr/local/include/mln/morpho/includes.hh:47,
from /usr/local/include/mln/morpho/closing/algebraic.hh:34,
from /usr/local/include/mln/morpho/closing/area.hh:33,
from /home/dcoeurjo/Encadrement/These/Xi_Wang/code/chain.hh:32,
from /home/dcoeurjo/Encadrement/These/Xi_Wang/code/myWatershed.cpp:54:
/usr/local/include/mln/canvas/browsing/directional.hh:102:27: erreur: uninitialized const ‘mln::canvas::browsing::directional’ [-fpermissive]
/usr/local/include/mln/canvas/browsing/directional.hh:90:14: note: ‘const struct mln::canvas::browsing::directional_t’ has no user-provided default constructor
In file included from /usr/local/include/mln/accu/transform_diagonal.hh:47:0,
from /usr/local/include/mln/morpho/includes.hh:48,
from /usr/local/include/mln/morpho/closing/algebraic.hh:34,
from /usr/local/include/mln/morpho/closing/area.hh:33,
from /home/dcoeurjo/Encadrement/These/Xi_Wang/code/chain.hh:32,
from /home/dcoeurjo/Encadrement/These/Xi_Wang/code/myWatershed.cpp:54:
/usr/local/include/mln/canvas/browsing/diagonal2d.hh:94:26: erreur: uninitialized const ‘mln::canvas::browsing::diagonal2d’ [-fpermissive]
/usr/local/include/mln/canvas/browsing/diagonal2d.hh:82:14: note: ‘const struct mln::canvas::browsing::diagonal2d_t’ has no user-provided default constructor
In file included from /usr/local/include/mln/accu/transform_diagonal.hh:50:0,
from /usr/local/include/mln/morpho/includes.hh:48,
from /usr/local/include/mln/morpho/closing/algebraic.hh:34,
from /usr/local/include/mln/morpho/closing/area.hh:33,
from /home/dcoeurjo/Encadrement/These/Xi_Wang/code/chain.hh:32,
from /home/dcoeurjo/Encadrement/These/Xi_Wang/code/myWatershed.cpp:54:
/usr/local/include/mln/canvas/browsing/backdiagonal2d.hh:98:30: erreur: uninitialized const ‘mln::canvas::browsing::backdiagonal2d’ [-fpermissive]
/usr/local/include/mln/canvas/browsing/backdiagonal2d.hh:83:14: note: ‘const struct mln::canvas::browsing::backdiagonal2d_t’ has no user-provided default constructor
In file included from /usr/local/include/mln/accu/transform_snake.hh:47:0,
from /usr/local/include/mln/morpho/includes.hh:50,
from /usr/local/include/mln/morpho/closing/algebraic.hh:34,
from /usr/local/include/mln/morpho/closing/area.hh:33,
from /home/dcoeurjo/Encadrement/These/Xi_Wang/code/chain.hh:32,
from /home/dcoeurjo/Encadrement/These/Xi_Wang/code/myWatershed.cpp:54:
/usr/local/include/mln/canvas/browsing/snake_fwd.hh:96:25: erreur: uninitialized const ‘mln::canvas::browsing::snake_fwd’ [-fpermissive]
/usr/local/include/mln/canvas/browsing/snake_fwd.hh:84:14: note: ‘const struct mln::canvas::browsing::snake_fwd_t’ has no user-provided default constructor
In file included from /usr/local/include/mln/accu/transform_snake.hh:48:0,
from /usr/local/include/mln/morpho/includes.hh:50,
from /usr/local/include/mln/morpho/closing/algebraic.hh:34,
from /usr/local/include/mln/morpho/closing/area.hh:33,
from /home/dcoeurjo/Encadrement/These/Xi_Wang/code/chain.hh:32,
from /home/dcoeurjo/Encadrement/These/Xi_Wang/code/myWatershed.cpp:54:
/usr/local/include/mln/canvas/browsing/snake_generic.hh:90:29: erreur: uninitialized const ‘mln::canvas::browsing::snake_generic’ [-fpermissive]
/usr/local/include/mln/canvas/browsing/snake_generic.hh:76:14: note: ‘const struct mln::canvas::browsing::snake_generic_t’ has no user-provided default constructor
make[2]: *** [CMakeFiles/myWatershed.dir/myWatershed.cpp.o] Erreur 1
----------------
David Coeurjolly - Directeur de recherche CNRS
CNRS, LIRIS-UMR 5205
Université de Lyon
Batiment Nautibus
43 boulevard du 11 novembre 1918, 69622 Villeurbanne cedex, France
Tel : (+33) [0]4.72.44.82.40 Fax : (+33) [0]4.72.43.15.36
http//liris.cnrs.fr/david.coeurjolly