Qt编译报错:usr/include/c++/4.9/bits/stl_relops.:67: Parse error at “std“的解决办法

明明安装了gcc和g++,版本是4.9.2 系统debian8

qmake -v

qmake myproject.pro  无任何报错

make

编译没有问题,链接的时候报错:

/usr/local/Qt-5.10.0/bin/moc -DLINUX -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB --include ./moc_predefs.h -I/usr/local/Qt-5.10.0/mkspecs/linux-g++ -I/root/hz3000v2.5/trunk/source/dts/debug_info_srv -I/root/hz3000v2.5/trunk/source/dts/common -I/root/hz3000v2.5/trunk/include/hnstd -I/root/hz3000v2.5/trunk/include/boost_include -I/root/hz3000v2.5/trunk/source/dts/debug_info_srv -I/usr/local/Qt-5.10.0/include -I/usr/local/Qt-5.10.0/include/QtNetwork -I/usr/local/Qt-5.10.0/include/QtCore -I/usr/include/c++/4.9 -I/usr/include/i386-linux-gnu/c++/4.9 -I/usr/include/c++/4.9/backward -I/usr/lib/gcc/i586-linux-gnu/4.9/include -I/usr/local/include -I/usr/lib/gcc/i586-linux-gnu/4.9/include-fixed -I/usr/include/i386-linux-gnu -I/usr/include tcp_server.h -o moc_tcp_server.cpp
us

你可能感兴趣的:(QT学习,知识点与应用技巧,linux,qt5,qmake,c++,gcc/gdb编译调试)