divyang4481 / photivo

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

compilation error with gcc 4.7.0 #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
GCC 4.7.0 no longer automatically includes unistd.h. This causes problems when 
compiling "Sources/qtsingleapplication/qtlocalpeer.cpp." Adding #include 
<unistd.h> fixes the problem.

The compilation error is following:

../Sources/qtsingleapplication/qtlocalpeer.cpp: In constructor 
‘QtLocalPeer::QtLocalPeer(QObject*, const QString&)’:                       

../Sources/qtsingleapplication/qtlocalpeer.cpp:96:54: error: ‘::getuid’ has 
not been declared                                                               

../Sources/qtsingleapplication/qtlocalpeer.cpp:96:54: note: suggested 
alternative:                                                                    

In file included from 
../Sources/qtsingleapplication/qtlockedfile_unix.cpp:42:0,                      

                 from ../Sources/qtsingleapplication/qtlocalpeer.cpp:60:                                                                                                                                                                     
/usr/include/unistd.h:698:16: note:   ‘QtLP_Private::getuid’                

make[1]: *** [../Objects/qtlocalpeer.o] Error 1 

Original issue reported on code.google.com by L.Jirkov...@gmail.com on 26 Apr 2012 at 4:19

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

Original comment by brother.john.gm@googlemail.com on 27 Apr 2012 at 11:48