Re,
To be more precise on my issues: I've cloned the main olena repo and the "make
check" generates the same kind of errors...Seems to be related to the compiler...
depbase=`echo all_accus.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I../../../milena -I../../../milena -O0 -ggdb -Wall -W -pipe -MT
all_accus.o -MD -MP -MF $depbase.Tpo -c -o all_accus.o all_accus.cc &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ../../../milena/mln/accu/transform_directional.hh:47:0,
from ../../../milena/mln/accu/all.hh:73,
from all_accus.cc:26:
../../../milena/mln/canvas/browsing/directional.hh:102:27: erreur: uninitialized const
‘mln::canvas::browsing::directional’ [-fpermissive]
../../../milena/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 ../../../milena/mln/accu/transform_diagonal.hh:47:0,
from ../../../milena/mln/accu/all.hh:74,
from all_accus.cc:26:
../../../milena/mln/canvas/browsing/diagonal2d.hh:94:26: erreur: uninitialized const
‘mln::canvas::browsing::diagonal2d’ [-fpermissive]
../../../milena/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 ../../../milena/mln/accu/transform_diagonal.hh:50:0,
from ../../../milena/mln/accu/all.hh:74,
from all_accus.cc:26:
../../../milena/mln/canvas/browsing/backdiagonal2d.hh:98:30: erreur: uninitialized const
‘mln::canvas::browsing::backdiagonal2d’ [-fpermissive]
../../../milena/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 ../../../milena/mln/accu/transform_snake.hh:47:0,
from ../../../milena/mln/accu/all.hh:76,
from all_accus.cc:26:
../../../milena/mln/canvas/browsing/snake_fwd.hh:96:25: erreur: uninitialized const
‘mln::canvas::browsing::snake_fwd’ [-fpermissive]
../../../milena/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 ../../../milena/mln/accu/transform_snake.hh:48:0,
from ../../../milena/mln/accu/all.hh:76,
from all_accus.cc:26:
../../../milena/mln/canvas/browsing/snake_generic.hh:90:29: erreur: uninitialized const
‘mln::canvas::browsing::snake_generic’ [-fpermissive]
../../../milena/mln/canvas/browsing/snake_generic.hh:76:14: note: ‘const struct
mln::canvas::browsing::snake_generic_t’ has no user-provided default constructor
make[5]: *** [all_accus.o] Erreur 1
Le 25 oct. 2011 à 16:22, David Coeurjolly a écrit :
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
----------------
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