project-lemon
project-lemon copied to clipboard
Ubuntu 16.04 下编译错误
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o qtlocalpeer.o qtsingleapplication/qtlocalpeer.cpp qtsingleapplication/qtlocalpeer.cpp: In constructor ‘QtLocalPeer::QtLocalPeer(QObject*, const QString&)’: qtsingleapplication/qtlocalpeer.cpp:96:54: error: ‘::getuid’ has not been declared socketName += QLatin1Char('-') + QString::number(::getuid(), 16);
it was fixed by 111116. see it