Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build explicitly with C++11 to avoid failures with modern compilers #54

Open
barracuda156 opened this issue Dec 27, 2024 · 0 comments
Open

Comments

@barracuda156
Copy link

There seems to be some issue with building this as C++17, and that is what some current compilers like gcc14 default to.

:info:build In file included from /opt/local/include/qt4/QtGui/qbrush.h:51,
:info:build                  from /opt/local/include/qt4/QtGui/qpalette.h:47,
:info:build                  from /opt/local/include/qt4/QtGui/qwidget.h:50:
:info:build /opt/local/include/qt4/QtGui/qtransform.h: In function 'QTransform operator*(const QTransform&, qreal)':
:info:build /opt/local/include/qt4/QtGui/qtransform.h:383:17: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   383 | { QTransform t(a); t *= n; return t; }
:info:build       |                 ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h:383:35: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   383 | { QTransform t(a); t *= n; return t; }
:info:build       |                                   ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h: In function 'QTransform operator/(const QTransform&, qreal)':
:info:build /opt/local/include/qt4/QtGui/qtransform.h:385:17: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   385 | { QTransform t(a); t /= n; return t; }
:info:build       |                 ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h:385:35: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   385 | { QTransform t(a); t /= n; return t; }
:info:build       |                                   ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h: In function 'QTransform operator+(const QTransform&, qreal)':
:info:build /opt/local/include/qt4/QtGui/qtransform.h:387:17: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   387 | { QTransform t(a); t += n; return t; }
:info:build       |                 ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h:387:35: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   387 | { QTransform t(a); t += n; return t; }
:info:build       |                                   ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h: In function 'QTransform operator-(const QTransform&, qreal)':
:info:build /opt/local/include/qt4/QtGui/qtransform.h:389:17: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   389 | { QTransform t(a); t -= n; return t; }
:info:build       |                 ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h:389:35: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   389 | { QTransform t(a); t -= n; return t; }
:info:build       |                                   ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qbrush.h: In member function 'QTransform QBrush::transform() const':
:info:build /opt/local/include/qt4/QtGui/qbrush.h:185:57: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   185 | inline QTransform QBrush::transform() const { return d->transform; }
:info:build       |                                                      ~~~^~~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qbrush.h: In member function 'QTransform QBrush::transform() const':
:info:build /opt/local/include/qt4/QtGui/qbrush.h:185:57: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   185 | inline QTransform QBrush::transform() const { return d->transform; }
:info:build       |                                                      ~~~^~~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build In file included from /opt/local/include/qt4/QtGui/qbrush.h:51,
:info:build                  from /opt/local/include/qt4/QtGui/qpalette.h:47,
:info:build                  from /opt/local/include/qt4/QtGui/qwidget.h:50:
:info:build /opt/local/include/qt4/QtGui/qtransform.h: In function 'QTransform operator*(const QTransform&, qreal)':
:info:build /opt/local/include/qt4/QtGui/qtransform.h:383:17: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   383 | { QTransform t(a); t *= n; return t; }
:info:build       |                 ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h:383:35: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   383 | { QTransform t(a); t *= n; return t; }
:info:build       |                                   ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h: In function 'QTransform operator/(const QTransform&, qreal)':
:info:build /opt/local/include/qt4/QtGui/qtransform.h:385:17: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   385 | { QTransform t(a); t /= n; return t; }
:info:build       |                 ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h:385:35: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   385 | { QTransform t(a); t /= n; return t; }
:info:build       |                                   ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h: In function 'QTransform operator+(const QTransform&, qreal)':
:info:build /opt/local/include/qt4/QtGui/qtransform.h:387:17: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   387 | { QTransform t(a); t += n; return t; }
:info:build       |                 ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h:387:35: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   387 | { QTransform t(a); t += n; return t; }
:info:build       |                                   ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h: In function 'QTransform operator-(const QTransform&, qreal)':
:info:build /opt/local/include/qt4/QtGui/qtransform.h:389:17: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   389 | { QTransform t(a); t -= n; return t; }
:info:build       |                 ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build /opt/local/include/qt4/QtGui/qtransform.h:389:35: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   389 | { QTransform t(a); t -= n; return t; }
:info:build       |                                   ^
:info:build /opt/local/include/qt4/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build make: *** [moc_dialogopenconnection.cpp] Bus error
:info:build make: *** Waiting for unfinished jobs....

However if I pass -std=c++11 to the build manually, the app builds fine and works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant