/usr/include/qt5/QtCore/qprocess.h:245:24: error: missing binary operator before token "("

 #if QT_DEPRECATED_SINCE(5,6)

                        ^
In file included from /usr/include/qt5/QtCore/QFile:1:0,
                 from sharediskthread.h:7,
                 from linuxmenu.h:10,
                 from main.cpp:1:
/usr/include/qt5/QtCore/qfile.h:92:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5,0)
                        ^
In file included from /usr/include/qt5/QtCore/QAbstractTableModel:1:0,
                 from usbmodel.h:4,
                 from eqiupmentdialog.h:5,
                 from linuxmenu.h:12,
                 from main.cpp:1:
/usr/include/qt5/QtCore/qabstractitemmodel.h:197:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
In file included from /usr/include/qt5/QtCore/QAbstractTableModel:1:0,
                 from usbmodel.h:4,
                 from eqiupmentdialog.h:5,
                 from linuxmenu.h:12,
                 from main.cpp:1:
/usr/include/qt5/QtCore/qabstractitemmodel.h:306:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5,0)
                        ^
/usr/include/qt5/QtCore/qabstractitemmodel.h:321:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5,0)
                        ^
In file included from /usr/include/qt5/QtCore/QTextCodec:1:0,
                 from main.cpp:2:
/usr/include/qt5/QtCore/qtextcodec.h:65:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
In file included from main.cpp:7:0:
singleapplication.h:10:10: error: #include expects "FILENAME" or <FILENAME>
 #include QT_STRINGIFY(QAPPLICATION_CLASS)
          ^
In file included from /usr/include/qt5/QtCore/QDateTime:1:0,
                 from main.cpp:10: /usr/include/qt5/QtCore/qdatetime.h:89:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5,0)
                        ^ /usr/include/qt5/QtCore/qdatetime.h:289:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 2)
                        ^ In file included from /usr/include/qt5/QtWidgets/qwidget.h:45:0,
                 from /usr/include/qt5/QtWidgets/QWidget:1,

问题原因:

qt4-devel与qt5.6的环境发生冲突

解决办法:

  卸载qt4-devel,  yum erase qt4-devel

qt环境问题导致的编译错误的更多相关文章

  1. Android源代码因删除所有git仓库导致的编译错误

    /******************************************************************************** * Android源代码因删除所有g ...

  2. 载入其他同名源文件导致vs编译错误

    今天下午工程编译的时候总是通不过,提示1,某个类没有某个成员,可是我去该类的头文件下查看,确实包括了这个成员啊.2,没有某个类,可是我明明定义了的. 检查了好久才发现 原来是,我打开了其他工程下的某一 ...

  3. 【解决了一个小问题】golang build中因为缓存文件损坏导致的编译错误

    编译的过程中出现了一个吓人的错误: GOROOT=C:\Go #gosetup GOPATH=C:\Users\ahfuzhang\go #gosetup C:\Go\bin\go.exe mod t ...

  4. maven 如何解决因本地jar导致的编译错误

    如何解决Maven依赖本地非repository中的jar包,依赖jar包放在WEB-INF/lib等目录下的情况客户端编译出错的处理.http://www.mamicode.com/info-det ...

  5. 一个第三方Dart库导致的编译错误!

    今天学习flutter过程中,突然程序不能运行了,无论是命令行,抑或Android Studio,还是Idea都是出现同样错误,如下: Running .5s Launching lib\main.d ...

  6. axf 文件包含太多的调试信息,导致的编译错误

    构建工程时,提示: build\my_test_prj.axf: Error: L6291E: Cannot assign Fixed Execution Region MCU_FLASH1 Load ...

  7. vue解决sass-loader的版本过高导致的编译错误

    Module build failed: TypeError: this.getResolve is not a function at Object.loader (E:\appEx\PreRese ...

  8. 常见C语言编译错误解析【转】

    C语言编译错误信息及说明1. 在函数 ‘transform’ 中:7: 错误:expected ‘;’ before ‘{’ token    解释:‘{’之前的某个语句缺少分号‘;’: 2. 在函数 ...

  9. QT编译错误: multiple definition of `qMain(int, char**)'

    QT使用过程中来回添加修改代码,结果出现了编译错误:error: multiple definition of `qMain(int, char**)' 一直看我的源文件是都哪里有错误,最后发现是在p ...

随机推荐

  1. CPP变量参数别名

    1,变量起"绰号"的操作称为引用(reference),"绰号"称为引用名,申明引用的语法格式; 变量数据类型 &引用名 = 已申明的变量名; 和C中的 ...

  2. 长沙Uber优步司机奖励政策(1月25日~1月31日)

    滴快车单单2.5倍,注册地址:http://www.udache.com/ 如何注册Uber司机(全国版最新最详细注册流程)/月入2万/不用抢单:http://www.cnblogs.com/mfry ...

  3. MenuDrawer的使用

    ---恢复内容开始--- MenuDrawer框架是一个可以实现上下左右滑动的框架,在使用中可以在xml文件中配置也可以在java代码中实现效果的配置 可以以jar的形式或依赖的形式存在      用 ...

  4. thinkphp 比对过去时间距离现在时间多少的问题

    <?php import('ORG.Util.Date');// 导入日期类 $Date = new Date();//实例化类 $time_diff = $Date->timeDiff( ...

  5. winform 猜猜看 分类: WinForm 2014-08-21 14:12 267人阅读 评论(0) 收藏

    说明: 1>窗体应用程序. 2>一个窗体(Form1),一个按钮(btnStart),一个文本(labTime) 3>截图: 4>代码如下: using System; usi ...

  6. 两层Fragment嵌套,外层Fragment切换时内层Fragment不显示内容

    尊重他人劳动成果,转载请说明出处:http://blog.csdn.net/bingospunky/article/details/46847269 需求 在搭界面有这么样一个需求:须要两层的Frag ...

  7. 【2014】【辛星】【php】【秋季】【2】第一个php程序

    <span style="font-family:KaiTi_GB2312;font-size:18px;">*******************设置server** ...

  8. A different twist on pre-compiling JSPs--reference

    I’ve blogged about this topic earlier and expressed my frustrations as to how web containers don’t p ...

  9. Javascript 函数和模块定义

    匿名函数 // calculator.js(function(root) {  var calculator = {    sum: function(a, b) { return a + b; }  ...

  10. Google代码实验室

    https://code.google.com/p/google-styleguide/