Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/158.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ ::时钟尚未声明_C++_Qt_Qt Creator - Fatal编程技术网

C++ ::时钟尚未声明

C++ ::时钟尚未声明,c++,qt,qt-creator,C++,Qt,Qt Creator,我正在尝试使用QtCreator构建一个小qt项目。 我已将此驱动程序添加到我的项目中: 我包括它的图书馆 当我尝试构建时,我得到了: g++ -c -pipe -g -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../OfirWebDriverProj -I. -I../ofir/qtwe

我正在尝试使用QtCreator构建一个小qt项目。 我已将此驱动程序添加到我的项目中:

我包括它的图书馆

当我尝试构建时,我得到了:

g++ -c -pipe -g -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../OfirWebDriverProj -I. -I../ofir/qtwebdriver/out/dist/desktop/release/libs -I../ofir/qtwebdriver/out/dist/desktop/release/libs -I../ofir/qtwebdriver/out/dist/desktop/release/libs -I../ofir/qtwebdriver/out/dist/desktop/release/libs -I../ofir/qtwebdriver/out/desktop/release/Default/lib.target -I../ofir/qtwebdriver/out/desktop/release/Default/lib.target -I../ofir/qtwebdriver/out/desktop/release/Default/lib.target -I../ofir/qtwebdriver/out/desktop/release/Default/lib.target -I../ofir/qtwebdriver/out/dist/desktop/release/h/base -I../ofir/qtwebdriver/out/dist/desktop/release/h -I../ofir/qtwebdriver/out/dist/desktop/release/Test -I/opt/Qt5.9.1/5.9.1/gcc_64/include -I/opt/Qt5.9.1/5.9.1/gcc_64/include/QtWidgets -I/opt/Qt5.9.1/5.9.1/gcc_64/include/QtGui -I/opt/Qt5.9.1/5.9.1/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -I. -I/opt/Qt5.9.1/5.9.1/gcc_64/mkspecs/linux-g++ -o main.o ../OfirWebDriverProj/main.cpp

In file included from /usr/include/c++/7/chrono:41:0,
                 from /opt/Qt5.9.1/5.9.1/gcc_64/include/QtCore/qobject.h:59,
                 from /opt/Qt5.9.1/5.9.1/gcc_64/include/QtCore/qcoreapplication.h:46,
                 from /opt/Qt5.9.1/5.9.1/gcc_64/include/QtWidgets/qapplication.h:44,
                 from /opt/Qt5.9.1/5.9.1/gcc_64/include/QtWidgets/QApplication:1,
                 from ../OfirWebDriverProj/main.cpp:2:

/usr/include/c++/7/ctime:64:11: error: ‘::clock’ has not been declared
   using ::clock;
           ^~~~~

/usr/include/c++/7/ctime:65:11: error: ‘::difftime’ has not been declared
   using ::difftime;
           ^~~~~~~~

/usr/include/c++/7/ctime:66:11: error: ‘::mktime’ has not been declared
   using ::mktime;
           ^~~~~~

/usr/include/c++/7/ctime:67:11: error: ‘::time’ has not been declared
   using ::time;
           ^~~~

/usr/include/c++/7/ctime:68:11: error: ‘::asctime’ has not been declared
   using ::asctime;
           ^~~~~~~

/usr/include/c++/7/ctime:69:11: error: ‘::ctime’ has not been declared
   using ::ctime;
           ^~~~~

/usr/include/c++/7/ctime:70:11: error: ‘::gmtime’ has not been declared
   using ::gmtime;
           ^~~~~~

/usr/include/c++/7/ctime:71:11: error: ‘::localtime’ has not been declared
   using ::localtime;
           ^~~~~~~~~

/usr/include/c++/7/ctime:72:11: error: ‘::strftime’ has not been declared
   using ::strftime;
           ^~~~~~~~

看起来您的GCC设置有问题,但无法确定。。。