Adding new functions to kde_terminal_panel.h

Andreas Pakulat apaku at gmx.de
Thu Mar 26 15:28:14 GMT 2009


On 26.03.09 16:51:04, rahman duran wrote:
> Hi,
> 
>  I need to make dolphin aware of whats happining in terminal panel. It talks
> to terminal panel via kde_terminal_interface and I need to implement some
> more functionality to it. But when I add a new virtual function to
> kde_terminal_interface.h and implement it in konsole/part.cpp, konsole
> refuse to link

You can't do that as its a bic change, you'll have to create a new
interface for your new functions and make konsole inherit from both.
 
> [100%] Building CXX object
> apps/konsole/src/CMakeFiles/konsolepart.dir/Part.o
> Linking CXX shared module ../../../lib/libkonsolepart.so
> CMakeFiles/konsolepart.dir/Part.o: In function `TerminalInterface':
> /usr/local/include/kde_terminal_interface.h:85: undefined reference to
> `vtable for TerminalInterface'
> CMakeFiles/konsolepart.dir/Part.o: In function `~TerminalInterface':
> /usr/local/include/kde_terminal_interface.h:87: undefined reference to
> `vtable for TerminalInterface'
> CMakeFiles/konsolepart.dir/Part.o:(.data.rel.ro._ZTIN7Konsole4PartE[typeinfo
> for Konsole::Part]+0x18): undefined reference to `typeinfo for
> TerminalInterface'
> collect2: ld returned 1 exit status

Did you implement the new methods in konsolepart? It seems like you didn't
do that.

Andreas

-- 
Advancement in position.




More information about the kde-core-devel mailing list