- To: gcc-help@xxxxxxxxxxx
- Subject: -std=gnu++0x : Compilation failed
- From: "H.S.Rai" <hardeep.rai@xxxxxxxxx>
- Date: Fri, 4 May 2012 21:24:32 +0530
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
I used to compile a programme successfully about a year back, but when
I tried now, it failed. Error was:
==========
warning: extended initializer lists only available with -std=c++0x or
-std=gnu++0x [enabled by default]
ssigning to an array from an initializer list
make[2]: *** [lib/Elements/CMakeFiles/elt.dir/axisymm.cpp.o] Error 1
==========
More is below signature.
The programme is:
https://github.com/pavossos/felt
I guess, it is because of version of gcc.
May someone tell me what to change where to make compilation
successful, without changing code.
Do I need to make -std=c++0x default? If yes, how when we are using cmake.
--
H.S.Rai
$ make
[ 1%] Building CXX object lib/Elements/CMakeFiles/elt.dir/axisymm.cpp.o
/home/tcc/Downloads/Ghai/pavossos-felt-2a816a3/lib/Elements/axisymm.cpp:
In function ‘void axisymmetricInit()’:
/home/tcc/Downloads/Ghai/pavossos-felt-2a816a3/lib/Elements/axisymm.cpp:52:36:
warning: extended initializer lists only available with -std=c++0x or
-std=gnu++0x [enabled by default]
/home/tcc/Downloads/Ghai/pavossos-felt-2a816a3/lib/Elements/axisymm.cpp:52:36:
error: assigning to an array from an initializer list
make[2]: *** [lib/Elements/CMakeFiles/elt.dir/axisymm.cpp.o] Error 1
make[1]: *** [lib/Elements/CMakeFiles/elt.dir/all] Error 2
make: *** [all] Error 2
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]