qdebug compile problem
-
I have:
in .pro QT += core gui
in mainwindow.h #include <QDebug>in mainwindow.cpp qDeBug() << "Starting";
When I compile:
11:36:51: Running steps for project TryIntrinsics2...
11:36:51: Configuration unchanged, skipping qmake step.
11:36:51: Starting: "D:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" -j16
D:/Qt/Tools/mingw810_64/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'D:/QtPrograms/build-TryIntrinsics2-Desktop_Qt_6_2_0_MinGW_64_bit-Debug'
g++ -c -fno-keep-inline-dllexport -mavx512f -g -std=gnu++1z -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I../TryIntrinsics2 -I. -I../../Qt/6.2.0/mingw81_64/include -I../../Qt/6.2.0/mingw81_64/include/QtWidgets -I../../Qt/6.2.0/mingw81_64/include/QtGui -I../../Qt/6.2.0/mingw81_64/include/QtCore -Idebug -I. -I/include -I../../Qt/6.2.0/mingw81_64/mkspecs/win32-g++ -o debug\mainwindow.o ..\TryIntrinsics2\mainwindow.cpp
..\TryIntrinsics2\mainwindow.cpp: In destructor 'virtual MainWindow::~MainWindow()':
..\TryIntrinsics2\mainwindow.cpp:17:1: error: 'qDeBug' was not declared in this scope
qDeBug() << "Starting";
^~~~~~
..\TryIntrinsics2\mainwindow.cpp:17:1: note: suggested alternative: 'qDebug'
qDeBug() << "Starting";
^~~~~~
qDebug
mingw32-make[1]: *** [Makefile.Debug:587: debug/mainwindow.o] Error 1
mingw32-make[1]: Leaving directory 'D:/QtPrograms/build-TryIntrinsics2-Desktop_Qt_6_2_0_MinGW_64_bit-Debug'
mingw32-make: *** [Makefile:45: debug] Error 2
11:36:53: The process "D:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project TryIntrinsics2 (kit: Desktop Qt 6.2.0 MinGW 64-bit)
When executing step "Make"
11:36:53: Elapsed time: 00:02.What am I doing wrong>
-
@ofmrew said in qdebug compile problem:
..\TryIntrinsics2\mainwindow.cpp:17:1: note: suggested alternative: 'qDebug'
qDeBug() << "Starting";Isn't this enough information to fix your error?