divyang4481 / photivo

Automatically exported from code.google.com/p/photivo
GNU General Public License v3.0
0 stars 0 forks source link

Build error with gcc-4.7.2 #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!

I'm trying to compile photivo in Mandriva Cooker with GCC 4.7.2 and getting the 
following error:

compiling ../Sources/filters/imagespot/ptSpotInteraction.cpp
../Sources/filters/imagespot/ptTuningSpot.cpp: In constructor 
'ptTuningSpot::ptTuningSpot(const QList<ptCfgItem>*)':
../Sources/filters/imagespot/ptTuningSpot.cpp:40:61: error: too many arguments 
to function 'std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = 
ptCurve; _Args = {}]'
In file included from 
/usr/lib64/gcc/x86_64-mandriva-linux-gnu/4.7.2/../../../../include/c++/4.7.2/mem
ory:87:0,                                                                       
            from ../Sources/filters/imagespot/ptTuningSpot.h:26,
                 from ../Sources/filters/imagespot/ptTuningSpot.cpp:23:
/usr/lib64/gcc/x86_64-mandriva-linux-gnu/4.7.2/../../../../include/c++/4.7.2/bit
s/shared_ptr.h:611:5: note: declared here
make[1]: *** [../Objects/ptTuningSpot.o] Error 1

Original issue reported on code.google.com by mikhi...@gmail.com on 1 Aug 2012 at 7:40

GoogleCodeExporter commented 9 years ago
GCC 4.7. does not like initializer lists as an argument for make_shared, in 
contrast to GCC 4.6. ... Weird ... Anyway, it’s fixed.

Original comment by brother.john.gm@googlemail.com on 20 Aug 2012 at 5:06

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 9a354ab53bbc.

Original comment by brother.john.gm@googlemail.com on 20 Aug 2012 at 5:07