Menu

#2 doesn't compile

open
nobody
5
2005-05-05
2005-05-05
Anonymous
No

System: Linux From Scratch
GCC 3.4.2

pitacard 0.6 doesn't compile on my system.
First I need to add QTDIR/bin to my $PATH -- fine.
Next I get messages as follows:

(omitting most of 'make'...)
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pitacard\"
-DVERSION=\"0.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -I. -I. -I../include
-I/opt/qt/include -g -O2 -MT DeckReviewOptionsDlg.o -MD
-MP -MF ".deps/DeckReviewOptionsDlg.Tpo" \ -c -o DeckReviewOptionsDlg.o `test -f
'DeckReviewOptionsDlg.cpp' || echo
'./'`DeckReviewOptionsDlg.cpp; \ then mv ".deps/DeckReviewOptionsDlg.Tpo"
".deps/DeckReviewOptionsDlg.Po"; \ else rm -f ".deps/DeckReviewOptionsDlg.Tpo"; exit 1; \ fi
In file included from KeyboardDeckRunnerUI.h:4,
from DeckReviewOptionsDlg.cpp:5:
DeckRunnerUI.h: In member function `void
pitacard::ui::DeckRunnerUI<Selector>::showFront()':
DeckRunnerUI.h:47: error: 'const class
__gnu_cxx::__normal_iterator<const
pitacard::data::Card*,
std::vector<pitacard::data::Card,
std::allocator<pitacard::data::Card> > >' has no member
named 'front'
DeckRunnerUI.h: In member function `void
pitacard::ui::DeckRunnerUI<Selector>::showBack()':
DeckRunnerUI.h:59: error: 'const class
__gnu_cxx::__normal_iterator<const
pitacard::data::Card*,
std::vector<pitacard::data::Card,
std::allocator<pitacard::data::Card> > >' has no member
named 'back'
In file included from DeckReviewOptionsDlg.cpp:5:
KeyboardDeckRunnerUI.h: In member function `void
pitacard::ui::KeyboardDeckRunnerUI<Selector,
FaceChooser>::keyPressEvent(QKeyEvent*)':
KeyboardDeckRunnerUI.h:39: error: there are no
arguments to `haveValidCard' that depend on a template
parameter, so a declaration of `haveValidCard' must be
available
KeyboardDeckRunnerUI.h:39: error: (if you use
`-fpermissive', G++ will accept your code, but allowing
the use of an undeclared name is deprecated)
KeyboardDeckRunnerUI.h:42: error: `mBackTextEdit'
undeclared (first use this function)
KeyboardDeckRunnerUI.h:42: error: (Each undeclared
identifier is reported only once for each function it
appears in.)
KeyboardDeckRunnerUI.h:42: error: there are no
arguments to `currentCard' that depend on a template
parameter, so a declaration of `currentCard' must be
available
KeyboardDeckRunnerUI.h:44: error: there are no
arguments to `repaint' that depend on a template
parameter, so a declaration of `repaint' must be available
KeyboardDeckRunnerUI.h:48: error: there are no
arguments to `nextCard' that depend on a template
parameter, so a declaration of `nextCard' must be available
KeyboardDeckRunnerUI.h:49: error: there are no
arguments to `haveValidCard' that depend on a template
parameter, so a declaration of `haveValidCard' must be
available
KeyboardDeckRunnerUI.h:51: error: `mFrontTextEdit'
undeclared (first use this function)
KeyboardDeckRunnerUI.h:51: error: there are no
arguments to `currentCard' that depend on a template
parameter, so a declaration of `currentCard' must be
available
KeyboardDeckRunnerUI.h:54: error: there are no
arguments to `repaint' that depend on a template
parameter, so a declaration of `repaint' must be available
KeyboardDeckRunnerUI.h: In member function `void
pitacard::ui::KeyboardDeckRunnerUI<Selector,
FaceChooser>::startReview()':
KeyboardDeckRunnerUI.h:67: error: there are no
arguments to `nextCard' that depend on a template
parameter, so a declaration of `nextCard' must be available
KeyboardDeckRunnerUI.h:69: error: there are no
arguments to `haveValidCard' that depend on a template
parameter, so a declaration of `haveValidCard' must be
available
KeyboardDeckRunnerUI.h:77: error: `mStartButton'
undeclared (first use this function)
KeyboardDeckRunnerUI.h:78: error: `mStopButton'
undeclared (first use this function)
KeyboardDeckRunnerUI.h:81: error: `mFrontTextEdit'
undeclared (first use this function)
KeyboardDeckRunnerUI.h:81: error: there are no
arguments to `currentCard' that depend on a template
parameter, so a declaration of `currentCard' must be
available
KeyboardDeckRunnerUI.h: In member function `void
pitacard::ui::KeyboardDeckRunnerUI<Selector,
FaceChooser>::stopReview()':
KeyboardDeckRunnerUI.h:88: error: `mFrontTextEdit'
undeclared (first use this function)
KeyboardDeckRunnerUI.h:89: error: `mBackTextEdit'
undeclared (first use this function)
KeyboardDeckRunnerUI.h:91: error: `mStartButton'
undeclared (first use this function)
KeyboardDeckRunnerUI.h:92: error: `mStopButton'
undeclared (first use this function)
make[2]: *** [DeckReviewOptionsDlg.o] Error 1
make[2]: Leaving directory `/home/rynx/pitacard-0.6/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/rynx/pitacard-0.6/src'
make: *** [all-recursive] Error 1

Discussion


Log in to post a comment.