I cannot run a program with MinGW 32bit but only with 64bit
-
Hi to everyone!
It's a lot of days that i've this problem and i'm not able to figure out!
First of all i want to say that i've uninstall all QT program from my computer and after that i've install with the online installer the Qt 5.14.2 with MinGW 32bit and MinGW 64bit (version of the compiler 7.3.0) compilers. After the installation, i created a new empty project (mainwindow.h, mainwindow.cpp, mainwindow.ui, main.cpp). If i run this program with a MinGW 64bit all works fine, instead if i use the MinGW 32bit it's crash without errors. I also tried to install different version of MinGW for 32bit (version of the compiler 5.3.0), but also in this case it crash without any errors.Someone can help me?
I can also post all the informations
.pro:
QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ main.cpp \ mainwindow.cpp HEADERS += \ mainwindow.h FORMS += \ mainwindow.ui # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += targetmainwindow.h:
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); private: Ui::MainWindow *ui; }; #endif // MAINWINDOW_Hmainwindow.cpp:
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; }main.cpp:
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }This is the compile output for the 32bit compiler:

This is the compile output for the 64bit compiler:

This is the application output for the 32bit compiler:

This is the application output for the 64bit compiler:

-
Hi to everyone!
It's a lot of days that i've this problem and i'm not able to figure out!
First of all i want to say that i've uninstall all QT program from my computer and after that i've install with the online installer the Qt 5.14.2 with MinGW 32bit and MinGW 64bit (version of the compiler 7.3.0) compilers. After the installation, i created a new empty project (mainwindow.h, mainwindow.cpp, mainwindow.ui, main.cpp). If i run this program with a MinGW 64bit all works fine, instead if i use the MinGW 32bit it's crash without errors. I also tried to install different version of MinGW for 32bit (version of the compiler 5.3.0), but also in this case it crash without any errors.Someone can help me?
I can also post all the informations
.pro:
QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ main.cpp \ mainwindow.cpp HEADERS += \ mainwindow.h FORMS += \ mainwindow.ui # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += targetmainwindow.h:
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); private: Ui::MainWindow *ui; }; #endif // MAINWINDOW_Hmainwindow.cpp:
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; }main.cpp:
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }This is the compile output for the 32bit compiler:

This is the compile output for the 64bit compiler:

This is the application output for the 32bit compiler:

This is the application output for the 64bit compiler:

I cannot compile with MinGW 32bit but only with 64bit
You topic is wrong - the compilation succeeded but you can not run it. Run it in debug mode to see what's going wrong.
-
I cannot compile with MinGW 32bit but only with 64bit
You topic is wrong - the compilation succeeded but you can not run it. Run it in debug mode to see what's going wrong.
@Christian-Ehrlicher
I change the topic, thank you!
In debug mode:

-
Hi to everyone!
It's a lot of days that i've this problem and i'm not able to figure out!
First of all i want to say that i've uninstall all QT program from my computer and after that i've install with the online installer the Qt 5.14.2 with MinGW 32bit and MinGW 64bit (version of the compiler 7.3.0) compilers. After the installation, i created a new empty project (mainwindow.h, mainwindow.cpp, mainwindow.ui, main.cpp). If i run this program with a MinGW 64bit all works fine, instead if i use the MinGW 32bit it's crash without errors. I also tried to install different version of MinGW for 32bit (version of the compiler 5.3.0), but also in this case it crash without any errors.Someone can help me?
I can also post all the informations
.pro:
QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ main.cpp \ mainwindow.cpp HEADERS += \ mainwindow.h FORMS += \ mainwindow.ui # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += targetmainwindow.h:
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); private: Ui::MainWindow *ui; }; #endif // MAINWINDOW_Hmainwindow.cpp:
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; }main.cpp:
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }This is the compile output for the 32bit compiler:

This is the compile output for the 64bit compiler:

This is the application output for the 32bit compiler:

This is the application output for the 64bit compiler:

@Edoardo_P did you turn off shadow build in the project settings? Could be a reason
-
@Edoardo_P did you turn off shadow build in the project settings? Could be a reason
@J-Hilk
No i didn't. The Shadow build is checked!
@Christian-EhrlicherThe figure that i posted before, is in the debug mode with MinGW 5.3 32bit if i run in debug mode with MinGW 7.3 32bit the figure not appear and in the application output i can see this:
