0

最近 Lubuntu に Qt をインストールしましたが、次のエラーが表示されます

関数 qNextPowerOfTwo がこのスコープで宣言されていないことを示すエラー

この関数は、ファイルに含まれている QtMath ライブラリによって提供されます。

ここに画像の説明を入力

ここでアドバイスはありますか?Windowsで同じプロジェクトを持っていますが、そのような問題はありません。御時間ありがとうございます。よろしくお願いします

ピーター

PS私は、質問に関連するコードがすでに画像に含まれている.proファイルを同封します。Qt 5.2.1 (GCC 4.8.2、32 ビット) を使用しています。

#-------------------------------------------------
#
# Project created by QtCreator 2016-04-26T18:35:07
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

QMAKE_CXXFLAGS += -std=c++0x

TARGET = WaveMod
TEMPLATE = app


SOURCES +=\
    mainwindow.cpp \
trace_ex.cpp \
trace_group_ex.cpp \
qcustomplot.cpp \
main.cpp \
fft_complx.cpp \
geom_ex.cpp


HEADERS  += mainwindow.h \
trace_ex.h \
trace_group_ex.h \
qcustomplot.h \
fft_complx.h \
geom_ex.h \

FORMS    += mainwindow.ui \
trace_ex.ui \
trace_group_ex.ui \
geom_ex.ui

DISTFILES += \
geom_map.qml
4

1 に答える 1