Bug 66147 - designer.cpp compilation error: no matching function for call to `Player::Player(int)'
Summary: designer.cpp compilation error: no matching function for call to `Player::Pla...
Status: RESOLVED WORKSFORME
Alias: None
Product: atlantikdesigner
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Jason Katz-Brown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-17 02:49 UTC by Aaron Brice
Modified: 2003-10-17 03:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Brice 2003-10-17 02:49:31 UTC
Version:            (using KDE KDE 3.1.4)
Installed from:    Gentoo Packages
Compiler:          g++ (GCC) 3.3.1 20030927 Gentoo Linux 3.3.1-r5, propolice
OS:          Linux

source='designer.cpp' object='designer.o' libtool=no \
depfile='.deps/designer.Po' tmpdepfile='.deps/designer.TPo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -O3 -mcpu=athlon-xp -march=athlon-xp -pipe -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -c -o designer.o `test -f 'designer.cpp' || echo './'`designer.cpp

designer.cpp: In member function `void AtlanticDesigner::initToken()':
designer.cpp:157: error: no matching function for call to `Player::Player(int)'
/usr/kde/3.1/include/atlantic/player.h:26: error: candidates are:
   Player::Player(const Player&)
/usr/kde/3.1/include/atlantic/player.h:30: error:
   Player::Player()
make[4]: *** [designer.o] Error 1


From designer.cpp:
void AtlanticDesigner::initToken()
{
        if (!m_player)
                m_player = new Player(0);


Removing the 0 got it to compile for me..
Comment 1 Aaron Brice 2003-10-17 03:07:49 UTC
Upon further review:

I was upgrading from KDE 3.1 RC3 to 3.1.4.  It looks like the player.h header file was created by kdegames, and used by the atlantikdesigner in kdeaddons.  Since Gentoo was updating kdeaddons before kdegames, it was compiling the atlantikdesigner against the header files from the 3.1 RC3 atlantik.  Upgrading kdegames before kdeaddons fixed the problem, will log a bug with Gentoo to make kdegames a dependency of kdeaddons.