[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Shadow distance type
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2004-09-01 10:37:54
Message-ID: 200409011237.54794.nicolasg () snafu ! de
[Download RAW message or body]

Sometimes I have got curious linking errors when a class was only forward 
defined and not completely defined.

So check if you have really included the right header file.

By the way: are those the only errors given by make or is there anything 
before, especially a warning?

Have a nice day!

On Wednesday 01 September 2004 11:04, p.stirnweiss_koffice@bluewin.ch wrote:
> >-- Message original --
>
> From: Nicolas Goutte <nicolasg@snafu.de>
>
> >To: For developer's discussion about KOffice <koffice-devel@mail.kde.org>
> >Date: Wed, 1 Sep 2004 09:57:44 +0200
> >Subject: Re: Shadow distance type
> >Reply-To: For developer's discussion about KOffice
> > <koffice-devel@mail.kde.org>
> >
> >
> >Is it possible that you compile against KOFFICE CVS HEAD but link against
> >
> >KOFFICE 1.3.x?
>
> No because KOffice 1.3.x has never been installed on that box. How recent
> is the KoDoubleUnitSpinBox code? My compile is probably a week or two old
> now.
>
> >On Wednesday 01 September 2004 09:07, p.stirnweiss_koffice@bluewin.ch 
wrote:
> >> >-- Message original --
> >>
> >> From: Nicolas Goutte <nicolasg@snafu.de>
> >>
> >> >To: For developer's discussion about KOffice
> >> > <koffice-devel@mail.kde.org> Date: Tue, 31 Aug 2004 22:50:16 +0200
> >> >Subject: Re: Shadow distance type
> >> >Reply-To: For developer's discussion about KOffice
> >> > <koffice-devel@mail.kde.org>
> >> >
> >> >
> >> >As you have not shown how the linker is called, it is diffuclt to tell
> >
> >if
> >
> >> >libkofficecore is included in the list of libraries to link against.
> >>
> >> no it is not. But I wonder why, given the fact that they it is in the
>
> same
>
> >> directory than libkdeui and this one has been picked up automatically
> >> without problem.
> >>
> >> >On Tuesday 31 August 2004 22:34, p.stirnweiss_koffice@bluewin.ch wrote:
> >> >> >-- Message original --
> >> >>
> >> >> From: Nicolas Goutte <nicolasg@snafu.de>
> >> >>
> >> >> >To: For developer's discussion about KOffice
> >> >> > <koffice-devel@mail.kde.org> Date: Tue, 31 Aug 2004 20:59:08 +0200
> >> >> >Subject: Re: Shadow distance type
> >> >> >Reply-To: For developer's discussion about KOffice
> >> >> > <koffice-devel@mail.kde.org>
> >> >> >
> >> >> >On Tuesday 31 August 2004 20:51, p.stirnweiss_koffice@bluewin.ch 
wrote:
> >> >> >> >-- Message original --
> >> >> >>
> >> >> >> From: Nicolas Goutte <nicolasg@snafu.de>
> >> >> >>
> >> >> >> >To: For developer's discussion about KOffice
> >> >> >> > <koffice-devel@mail.kde.org> Date: Tue, 31 Aug 2004 20:20:31
> >> >> >> > +0200 Subject: Re: Shadow distance type
> >> >> >> >Reply-To: For developer's discussion about KOffice
> >> >> >> > <koffice-devel@mail.kde.org>
> >> >> >> >
> >> >> >> >
> >> >> >> >Please use double, as the unit widgets in KOffice are based on
> >> >> >> > double.
> >> >> >> >
> >> >> >> >And I would perhaps not change it to KDoubleNumInput but the
> >> >> >> > corresponding
> >> >> >> >
> >> >> >> >unit widget.
> >> >> >>
> >> >> >> I meant a KDoubleSpinBox but I guess this is not the proper one
> >> >> >> either.
> >> >> >
> >> >> >Is
> >> >> >
> >> >> >> the corresponding unit widget to be found in KOffice? or KDE?
> >> >> >
> >> >> >Sorry! By "unit widgets" I meant the widgets defined in:
> >> >> >koffice/lib/kofficeui/koUnitWidgets.h
> >> >> >
> >> >> >So I suppose that you would need a KoUnitDoubleSpinBox
> >> >> >
> >> >> >(Unit widgets are supposed to be used everywhere, but the
> >> >> > implementation was
> >> >> >closely related to their use in Karbon. I have tried to make the
> >> >> > class more
> >> >> >
> >> >> >general (always based on points) but it is not really finished.)
> >> >>
> >> >> Well, I get this on linking with KoUnitDoubleSpinBox :
> >> >>
> >> >> koDecoTab.o(.text+0x7c0): In function
> >> >> `koDecoTab::koDecoTab[not-in-charge](QWidget*, char const*)':
> >> >> */home/test/src/koDecoTab.cpp:90: undefined reference to
> >> >> `KoUnitDoubleSpinBox::KoUnitDoubleSpinBox[in-charge](QWidget*,
> >> >> double, double, double, double, KoUnit::Unit, unsigned, char const*)'
> >> >> *koDecoTab.o(.text+0x194c): In function
> >> >> `koDecoTab::koDecoTab[in-charge](QWidget*, char const*)':
> >> >> */home/test/src/koDecoTab.cpp:90: undefined reference to
> >> >> `KoUnitDoubleSpinBox::KoUnitDoubleSpinBox[in-charge](QWidget*,
> >> >> double, double, double, double, KoUnit::Unit, unsigned, char const*)'
> >> >> *koDecoTab.o(.text+0x244e): In function
> >> >> `koDecoTab::shadowChangedSlot()':
> >> >>
> >> >> */home/test/src/koDecoTab.cpp:184: undefined reference to
> >> >> `KoUnitDoubleSpinBox::value() const'
> >> >> *collect2: ld returned 1 exit status
> >> >> *gmake[2]: *** [test] Error 1
> >> >> *gmake[2]: Target `all' not remade because of errors.
> >> >> *gmake[1]: *** [all-recursive] Error 1
> >> >> *gmake: *** [all] Error 2
> >> >>
> >> >> I might be missing something in the Makefile. I have not got this
> >> >> problem with a KDoubleSpinBox. Only change between the two trials was
> >> >> this.
> >> >>
> >> >> Pierre
(...)

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic