Hi,
On 24/11/2011 17:58, Mikado Mikado wrote:
With this code in terminal:
olena2.0/_build$ ./configure --enable-scribo
olena2.0/_build$ make
For install Scribo module, but i get this error:
../../../../milena/mln/canvas/browsing/snake_generic.hh:76:14: nota:
‘const struct mln::canvas::browsing::snake_generic_t’ no tiene
constructor por defecto proporcionado por el usuario
make[1]: *** [pgm_global_threshold_auto.o] Error 1
make: *** [all-recursive] Error 1
I have Ubuntu 11.10 32 bits.
Anyone can help me?
Thanks for your report.
Ubuntu 11.10 provides g++ 4.6.1 which changed few things about
initialization of global structures/classes.
This is a known issue which can be avoided easily.
I have just added a "known issues" section in the download page
explaining the workaround.
You can find it below.
Thanks for your interest in Scribo and Olena.
Sincerely,
Guillaume
-------------
Compilation issues may be encountered with g++ 4.6.0 and 4.6.1
(especially on Ubuntu 11.10).
Here is an example of the possible error :
../../../../olena/milena/mln/canvas/browsing/snake_generic.hh:90:29:
error: uninitialized const ‘mln::canvas::browsing::snake_generic’
[-fpermissive]
../../../../olena/milena/mln/canvas/browsing/snake_generic.hh:76:14:
note: ‘const struct mln::canvas::browsing::snake_generic_t’ has no
user-provided default constructor
Many non-relevant warnings may also arise.
A simple solution is to add CXXFLAGS to configure script with the
following argument :
%begin bash%
./configure CXXFLAGS="-fpermissive -Wunused-but-set-variable"
%end%
Otherwise, using a different version of g++ would also fix this issue
without specifying anything to configure.