Compile error in Fedora Core 11

Asked by Richard Colley

I am running a bleeding edge (unreleased) version of Fedora Core 11. It has the following versions of packages:

 * gcc 4.4.0-4
 * g++ 4.4.0-4
 * qt 4.5.0-14
 * python 2.6-7
 * pyqt 4.4.4-5
 * scons 1.2.0-2

I believe I have all the required dependencies satisfied, but when building (scons release=yes), compilation fails for src/DetailedView.cc. Error output is:

g++ -o src/DetailedView.o -c -g0 -O3 -W -Wall -Wnon-virtual-dtor -Wno-unused-parameter -DPREFIX=/usr -DVERSION=0.2.1a -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_SHARED -Isrc -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtSql -I/usr/include/QtNetwork src/DetailedView.cc
src/DetailedView.cc: In constructor 'DetailedView::DetailedView(QWidget*)':
src/DetailedView.cc:47: error: 'QObject' is an inaccessible base of 'SingleEntryView'
scons: *** [src/DetailedView.o] Error 1
scons: building terminated because of errors.

Any suggestions?

Thanks,
Richard

Question information

Language:
English Edit question
Status:
Answered
For:
Tagaini Jisho Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gnurou (gnurou) said :
#1

Sorry about this - GCC 4.4 turns out to be less tolerant to poor coding like mine. ;) You can fix this problem by editing src/SingleEntryView.h, going to line 31 and changing "protected" to "public". This will be fixed in the next version (due soon, hopefully).

Please let me know if you see similar problems elsewhere in the code.

Can you help with this problem?

Provide an answer of your own, or ask Richard Colley for more information if necessary.

To post a message you must log in.