Re: [Kaffeine-user] Compiling Kaffeine with a new class
Brought to you by:
hftom,
lasselindqvist
From: <jue...@ch...> - 2003-12-24 11:13:05
|
Hi Erik, Did you add "sqleditor.cpp" to Makefile.am? I turned off the "Modify Makefiles" option because kdevelop can't handle shared libs. So you have to maintain the makefiles by hand... best wishes Jürgen Kofler Erik Severinghaus schrieb: >Hello all, >I'm attempting to make some additions to Kaffeine. My coding is quite >rusty, so forgive me if this is a simple question. > >I'm working on extending Kaffeine so that it can use a mysql table to >control the playlist. My hope is to use this to create an extremely >powerful playlist editor with some pretty cool features. > >I've downloaded Kaffeine 0.4 and got it to compile. I began making some >minor changes, and all was good. > >When I try to create my own class though, I get the following linker >error: > >g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt3/ >-I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor >-Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W >-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi >-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 >-fno-exceptions -fno-check-new -c -o kaffeineapp.o `test -f >'kaffeineapp.cpp' || echo './'`kaffeineapp.cpp >cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for >C++ >/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor >-Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W >-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi >-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 >-fno-exceptions -fno-check-new -L/usr/X11R6/lib -o kaffeine >-L/usr/X11R6/lib -L/usr/share/qt3/lib/ -L/usr/lib -R /usr/lib -R >/usr/share/qt3/lib/ -R /usr/X11R6/lib main.o kaffeineapp.o >kaffeine_part.la >./.libs/kaffeine_part.so: undefined reference to >`SQLEditor::SQLEditor[in-charge](QWidget*)' >collect2: ld returned 1 exit status >make[2]: Leaving directory >`/mnt/other/usr/src/apps/kaffeine-0.4/kaffeine' >make[2]: *** [kaffeine] Error 1 >make[1]: *** [all-recursive] Error 1 >make[1]: Leaving directory `/mnt/other/usr/src/apps/kaffeine-0.4' >make: *** [all] Error 2 >*** failed *** > >The class is pretty basic stuff. Right now I'm just trying to get it to >compile with a simple constructor. > >class SQLEditor : public KListView { >public: > SQLEditor(QWidget *parent=0); > ~SQLEditor(); >}; > >Can anyone shed any insight on what's going on here? > >Thanks! >Erik > > > |