Closed buvk closed 1 year ago
Ah, sorry, i will fix that tommorow. If you want it now, just fix the include to "ui_NewConfigDialog.h"
Thanks. That resolved the error I was experiencing, however, now I am experiencing a new one:
$ mingw32-make
C:/msys64/mingw32/bin/mingw32-make.exe -f Makefile.Release
mingw32-make[1]: Entering directory 'C:/msys64/home/buvk/DoomRunner/build-static'
g++ -c -fno-keep-inline-dllexport -Wno-deprecated-declarations -std=c++17 -Wno-deprecated-copy -Wno-comment -O2 -Wall -Wextra -Wextra -ffunction-sections -fdata-sections -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I../../DoomRunner -I. -I../../../../mingw64/qt5-static/include -I../../../../mingw64/qt5-static/include/QtWidgets -I../../../../mingw64/qt5-static/include/QtGui -I../../../../mingw64/qt5-static/include/QtNetwork -I../../../../mingw64/qt5-static/include/QtCore -Irelease -I. -I../../../../mingw64/qt5-static/share/qt5/mkspecs/win32-g++ -o release/NewConfigDialog.o ../Sources/NewConfigDialog.cpp
../Sources/NewConfigDialog.cpp: In constructor 'NewConfigDialog::NewConfigDialog(QWidget*, const QString&)':
../Sources/NewConfigDialog.cpp:18:22: error: invalid use of incomplete type 'class Ui::ConfigDialog'
18 | ui = new Ui::ConfigDialog;
| ^~~~~~~~~~~~
In file included from ../Sources/NewConfigDialog.cpp:8:
../Sources/NewConfigDialog.hpp:17:15: note: forward declaration of 'class Ui::ConfigDialog'
17 | class ConfigDialog;
| ^~~~~~~~~~~~
../Sources/NewConfigDialog.cpp:19:11: error: invalid use of incomplete type 'class Ui::ConfigDialog'
19 | ui->setupUi(this);
| ^~
../Sources/NewConfigDialog.hpp:17:15: note: forward declaration of 'class Ui::ConfigDialog'
17 | class ConfigDialog;
| ^~~~~~~~~~~~
../Sources/NewConfigDialog.cpp:21:11: error: invalid use of incomplete type 'class Ui::ConfigDialog'
21 | ui->configNameLine->setText( currentConfigName );
| ^~
../Sources/NewConfigDialog.hpp:17:15: note: forward declaration of 'class Ui::ConfigDialog'
17 | class ConfigDialog;
| ^~~~~~~~~~~~
../Sources/NewConfigDialog.cpp: In member function 'void NewConfigDialog::confirmed()':
../Sources/NewConfigDialog.cpp:28:27: error: invalid use of incomplete type 'class Ui::ConfigDialog'
28 | newConfigName = ui->configNameLine->text();
| ^~
../Sources/NewConfigDialog.hpp:17:15: note: forward declaration of 'class Ui::ConfigDialog'
17 | class ConfigDialog;
| ^~~~~~~~~~~~
../Sources/NewConfigDialog.cpp: In destructor 'virtual NewConfigDialog::~NewConfigDialog()':
../Sources/NewConfigDialog.cpp:33:9: warning: possible problem detected in invocation of 'operator delete' [-Wdelete-incomplete]
33 | delete ui;
| ^~~~~~~~~
../Sources/NewConfigDialog.cpp:33:16: warning: invalid use of incomplete type 'class Ui::ConfigDialog'
33 | delete ui;
| ^~
../Sources/NewConfigDialog.hpp:17:15: note: forward declaration of 'class Ui::ConfigDialog'
17 | class ConfigDialog;
| ^~~~~~~~~~~~
../Sources/NewConfigDialog.cpp:33:9: note: neither the destructor nor the class-specific 'operator delete' will be called, even if they are declared when the class is defined
33 | delete ui;
| ^~~~~~~~~
mingw32-make[1]: *** [Makefile.Release:3461: release/NewConfigDialog.o] Error 1
mingw32-make[1]: Leaving directory 'C:/msys64/home/buvk/DoomRunner/build-static'
mingw32-make: *** [Makefile:45: release] Error 2
fixed
Unable to compile the statically linked version in a fresh install of Msys2 using the compiling instructions in the README.