Opened 10 years ago

Closed 10 years ago

#7432 closed defect (fixed)

std::list problem in mythpainter_qt.h

Reported by: Nigel Owned by: Nigel
Priority: major Milestone: unknown
Component: Ports - OSX Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Unsure when this crept in, but OS X:

g++ -c -pipe -march=pentium4 -fomit-frame-pointer -O3 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -Wno-long-double -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks -F/System/Library/Frameworks/Carbon.framework/Frameworks -DPIC -fPIC -DMMX -Di386 -DUSING_APPLEREMOTE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_LIRC -DUSE_OPENGL_PAINTER -DUSING_QTWEBKIT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/Volumes/MythBuild/.osx-packager/build/mkspecs/macx-g++ -I. -I/Volumes/MythBuild/.osx-packager/build/include/QtCore -I/Volumes/MythBuild/.osx-packager/build/include/QtCore -I/Volumes/MythBuild/.osx-packager/build/include/QtNetwork -I/Volumes/MythBuild/.osx-packager/build/include/QtNetwork -I/Volumes/MythBuild/.osx-packager/build/include/QtGui -I/Volumes/MythBuild/.osx-packager/build/include/QtGui -I/Volumes/MythBuild/.osx-packager/build/include/QtOpenGL -I/Volumes/MythBuild/.osx-packager/build/include/QtOpenGL -I/Volumes/MythBuild/.osx-packager/build/include/QtXml -I/Volumes/MythBuild/.osx-packager/build/include/QtXml -I/Volumes/MythBuild/.osx-packager/build/include/QtSql -I/Volumes/MythBuild/.osx-packager/build/include/QtSql -I/Volumes/MythBuild/.osx-packager/build/include/QtWebKit -I/Volumes/MythBuild/.osx-packager/build/include/QtWebKit -I/Volumes/MythBuild/.osx-packager/build/include -I/Volumes/MythBuild/.osx-packager/build/include -I/usr/include -I/Volumes/MythBuild/.osx-packager/build -I../libmythdb -I../.. -I.. -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -I. -o mythpainter_qt.o mythpainter_qt.cpp
mythpainter_qt.h:47: error: using-declaration for non-member at class scope
mythpainter_qt.h:47: error: expected ';' before '<' token
mythpainter_qt.cpp: In member function 'virtual void MythQtPainter::Begin(QWidget*)':
mythpainter_qt.cpp:80: error: 'm_imageDeleteList' was not declared in this scope
mythpainter_qt.cpp: In member function 'virtual void MythQtPainter::DeleteFormatImage(MythImage*)':
mythpainter_qt.cpp:276: error: 'm_imageDeleteList' was not declared in this scope
make: *** [mythpainter_qt.o] Error 1

which might be a GCC 4.0.1 header bug?

Change History (5)

comment:1 Changed 10 years ago by stuartm

Component: MythTV - GeneralPorts - OSX
Owner: changed from Isaac Richards to Nigel

comment:2 Changed 10 years ago by cpinkham

I think this just needs "#include <list>" at the top. I did not add that as part of my changes, but do see it at the top of other painter headers which use std::list.

comment:3 Changed 10 years ago by Nigel

(In [22599]) Fix compile with some GCCs. Refs #7432

comment:4 Changed 10 years ago by cpinkham

(In [22600]) Backport [22599] from trunk to fix OSX compilation issue. Refs #7432.

comment:5 Changed 10 years ago by Nigel

Resolution: fixed
Status: newclosed

All tested and good.

Note: See TracTickets for help on using tickets.