Files
env-monitor-qt/main.cpp
T

22 lines
451 B
C++

// 添加GLIBC兼容性支持
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
// 限制GLIBC版本兼容性到2.31
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
# if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 31)
# define GLIBC_MAX_VERSION "2.31"
# endif
#endif
#include <QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}