Can't compile KSpread

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't compile KSpread

fyanardi (Bugzilla)
Hi all,

Today I updated my koffice svn copy to the latest revision, but I no longer
can compile KSpread. Here is the error produced by make:

kspread_canvas.cc:70:29: highlight_range.h: No such file or directory
kspread_canvas.cc: In member function `bool
   KSpreadCanvas::getHighlightedRangesAt(int, int,
std::vector<HighlightRange*,
   std::allocator<HighlightRange*> >&)':
kspread_canvas.cc:899: error: `getRange' undeclared (first use this function)
kspread_canvas.cc:899: error: (Each undeclared identifier is reported only
once
   for each function it appears in.)
kspread_canvas.cc: In member function `void
   KSpreadCanvas::resizeHighlightedRange(HighlightRange*, const QRect&)':
kspread_canvas.cc:928: error: `getRange' undeclared (first use this function)
kspread_canvas.cc: In member function `virtual void
   KSpreadCanvas::mouseMoveEvent(QMouseEvent*)':
kspread_canvas.cc:1062: error: `getRange' undeclared (first use this function)
kspread_canvas.cc: In member function `HighlightRange*
   KSpreadCanvas::highlightRangeSizeGripAt(double, double)':
kspread_canvas.cc:1335: error: `getRange' undeclared (first use this function)
kspread_canvas.cc: In member function `void
   KSpreadCanvas::paintHighlightedRanges(QPainter&, const KoRect&)':
kspread_canvas.cc:3979: error: `firstCell' undeclared (first use this
function)
kspread_canvas.cc:3987: error: `lastCell' undeclared (first use this function)
kspread_canvas.cc:4011: error: `color' undeclared (first use this function)
kspread_canvas.cc:3968: warning: unused parameter `const KoRect&viewRect'
kspread_canvas.cc: In member function `void
   KSpreadCanvas::setHighlightedRanges(std::vector<HighlightRange,
   std::allocator<HighlightRange> >*)':
kspread_canvas.cc:5982: error: `lastCell' undeclared (first use this function)
kspread_canvas.cc:5984: error: `firstCell' undeclared (first use this
function)
kspread_canvas.cc:6017:33: warning: "/*" within comment
/usr/include/c++/3.3/bits/stl_iterator.h: In member function `
   __gnu_cxx::__normal_iterator<_Iterator, _Container>
   __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++(int) [with
   _Iterator = HighlightRange*, _Container = std::vector<HighlightRange,
   std::allocator<HighlightRange> >]':
kspread_canvas.cc:896:   instantiated from here
/usr/include/c++/3.3/bits/stl_iterator.h:611: error: cannot increment a
pointer
   to incomplete type `HighlightRange'
/usr/include/c++/3.3/bits/stl_vector.h: In destructor `std::_Vector_base<_Tp,
   _Alloc>::~_Vector_base() [with _Tp = HighlightRange, _Alloc =
   std::allocator<HighlightRange>]':
/usr/include/c++/3.3/bits/stl_vector.h:297:   instantiated from
`std::vector<_Tp, _Alloc>::~vector() [with _Tp = HighlightRange, _Alloc =
std::allocator<HighlightRange>]'
kspread_canvas.cc:217:   instantiated from here
/usr/include/c++/3.3/bits/stl_vector.h:162: error: invalid use of undefined
   type `struct HighlightRange'
kspread_canvas.h:72: error: forward declaration of `struct HighlightRange'
/usr/include/c++/3.3/bits/stl_vector.h: In constructor `std::_Vector_base<_Tp,
   _Alloc>::_Vector_base(unsigned int, typename std::_Vector_alloc_base<_Tp,
   _Alloc, std::_Alloc_traits<_Tp,
   _Allocator>::_S_instanceless>::allocator_type&) [with _Tp = HighlightRange,
   _Alloc = std::allocator<HighlightRange>]':
/usr/include/c++/3.3/bits/stl_vector.h:266:   instantiated from
`std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp
= HighlightRange, _Alloc = std::allocator<HighlightRange>]'
kspread_canvas.cc:6007:   instantiated from here
/usr/include/c++/3.3/bits/stl_vector.h:158: error: invalid use of undefined
   type `struct HighlightRange'
kspread_canvas.h:72: error: forward declaration of `struct HighlightRange'
/usr/include/c++/3.3/bits/stl_construct.h: In function `void
   std::__destroy_aux(_ForwardIterator, _ForwardIterator, __false_type) [with
   _ForwardIterator = HighlightRange*]':
/usr/include/c++/3.3/bits/stl_construct.h:143:   instantiated from `void
std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator =
HighlightRange*]'
/usr/include/c++/3.3/bits/stl_vector.h:297:   instantiated from
`std::vector<_Tp, _Alloc>::~vector() [with _Tp = HighlightRange, _Alloc =
std::allocator<HighlightRange>]'
kspread_canvas.cc:217:   instantiated from here
/usr/include/c++/3.3/bits/stl_construct.h:101: error: cannot increment a
   pointer to incomplete type `HighlightRange'
/usr/include/c++/3.3/bits/stl_iterator.h: In function `typename
   __gnu_cxx::__normal_iterator<_IteratorL, _Container>::difference_type
   __gnu_cxx::operator-(const __gnu_cxx::__normal_iterator<_IteratorL,
   _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
   [with _IteratorL = const HighlightRange*, _IteratorR = const
   HighlightRange*, _Container = std::vector<HighlightRange,
   std::allocator<HighlightRange> >]':
/usr/include/c++/3.3/bits/stl_vector.h:415:   instantiated from `size_t
std::vector<_Tp, _Alloc>::size() const [with _Tp = HighlightRange, _Alloc =
std::allocator<HighlightRange>]'
/usr/include/c++/3.3/bits/stl_vector.h:266:   instantiated from
`std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp
= HighlightRange, _Alloc = std::allocator<HighlightRange>]'
kspread_canvas.cc:6007:   instantiated from here
/usr/include/c++/3.3/bits/stl_iterator.h:735: error: invalid use of undefined
   type `const struct HighlightRange'
kspread_canvas.h:72: error: forward declaration of `const struct
HighlightRange
   '
/usr/include/c++/3.3/bits/stl_uninitialized.h: In function `_ForwardIter
   std::__uninitialized_copy_aux(_InputIter, _InputIter, _ForwardIter,
   __false_type) [with _InputIter = __gnu_cxx::__normal_iterator<const
   HighlightRange*, std::vector<HighlightRange, std::allocator<HighlightRange>
   > >, _ForwardIter = HighlightRange*]':
/usr/include/c++/3.3/bits/stl_uninitialized.h:112:   instantiated from
`_ForwardIter std::uninitialized_copy(_InputIter, _InputIter, _ForwardIter)
[with _InputIter = __gnu_cxx::__normal_iterator<const HighlightRange*,
std::vector<HighlightRange, std::allocator<HighlightRange> > >, _ForwardIter
= HighlightRange*]'
/usr/include/c++/3.3/bits/stl_vector.h:266:   instantiated from
`std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp
= HighlightRange, _Alloc = std::allocator<HighlightRange>]'
kspread_canvas.cc:6007:   instantiated from here
/usr/include/c++/3.3/bits/stl_uninitialized.h:86: error: cannot increment a
   pointer to incomplete type `HighlightRange'
/usr/include/c++/3.3/bits/stl_construct.h: In function `void
   std::_Destroy(_Tp*) [with _Tp = HighlightRange]':
/usr/include/c++/3.3/bits/stl_construct.h:101:   instantiated from `void
std::__destroy_aux(_ForwardIterator, _ForwardIterator, __false_type) [with
_ForwardIterator = HighlightRange*]'
/usr/include/c++/3.3/bits/stl_construct.h:143:   instantiated from `void
std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator =
HighlightRange*]'
/usr/include/c++/3.3/bits/stl_vector.h:297:   instantiated from
`std::vector<_Tp, _Alloc>::~vector() [with _Tp = HighlightRange, _Alloc =
std::allocator<HighlightRange>]'
kspread_canvas.cc:217:   instantiated from here
/usr/include/c++/3.3/bits/stl_construct.h:125: error: invalid use of undefined
   type `struct HighlightRange'
kspread_canvas.h:72: error: forward declaration of `struct HighlightRange'
/usr/include/c++/3.3/bits/stl_alloc.h: In static member function `static _Tp*
   std::__simple_alloc<_Tp, _Alloc>::allocate(unsigned int) [with _Tp =
   HighlightRange, _Alloc = std::__default_alloc_template<true, 0>]':
/usr/include/c++/3.3/bits/stl_vector.h:127:   instantiated from `_Tp*
std::_Vector_alloc_base<_Tp, _Allocator, true>::_M_allocate(unsigned int)
[with _Tp = HighlightRange, _Allocator = std::allocator<HighlightRange>]'
/usr/include/c++/3.3/bits/stl_vector.h:156:   instantiated from
`std::_Vector_base<_Tp, _Alloc>::_Vector_base(unsigned int, typename
std::_Vector_alloc_base<_Tp, _Alloc, std::_Alloc_traits<_Tp,
_Allocator>::_S_instanceless>::allocator_type&) [with _Tp = HighlightRange,
_Alloc = std::allocator<HighlightRange>]'
/usr/include/c++/3.3/bits/stl_vector.h:266:   instantiated from
`std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp
= HighlightRange, _Alloc = std::allocator<HighlightRange>]'
kspread_canvas.cc:6007:   instantiated from here
/usr/include/c++/3.3/bits/stl_alloc.h:232: error: invalid application of `
   sizeof' to an incomplete type
/usr/include/c++/3.3/bits/stl_iterator.h: In member function `
   __gnu_cxx::__normal_iterator<_Iterator, _Container>&
   __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++() [with
   _Iterator = const HighlightRange*, _Container = std::vector<HighlightRange,
   std::allocator<HighlightRange> >]':
/usr/include/c++/3.3/bits/stl_uninitialized.h:86:   instantiated from
`_ForwardIter std::__uninitialized_copy_aux(_InputIter, _InputIter,
_ForwardIter, __false_type) [with _InputIter =
__gnu_cxx::__normal_iterator<const HighlightRange*,
std::vector<HighlightRange, std::allocator<HighlightRange> > >, _ForwardIter
= HighlightRange*]'
/usr/include/c++/3.3/bits/stl_uninitialized.h:112:   instantiated from
`_ForwardIter std::uninitialized_copy(_InputIter, _InputIter, _ForwardIter)
[with _InputIter = __gnu_cxx::__normal_iterator<const HighlightRange*,
std::vector<HighlightRange, std::allocator<HighlightRange> > >, _ForwardIter
= HighlightRange*]'
/usr/include/c++/3.3/bits/stl_vector.h:266:   instantiated from
`std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp
= HighlightRange, _Alloc = std::allocator<HighlightRange>]'
kspread_canvas.cc:6007:   instantiated from here
/usr/include/c++/3.3/bits/stl_iterator.h:608: error: cannot increment a
pointer
   to incomplete type `const HighlightRange'
/usr/include/c++/3.3/bits/stl_construct.h: In function `void
   std::_Construct(_T1*, const _T2&) [with _T1 = HighlightRange, _T2 =
   HighlightRange]':
/usr/include/c++/3.3/bits/stl_uninitialized.h:87:   instantiated from
`_ForwardIter std::__uninitialized_copy_aux(_InputIter, _InputIter,
_ForwardIter, __false_type) [with _InputIter =
__gnu_cxx::__normal_iterator<const HighlightRange*,
std::vector<HighlightRange, std::allocator<HighlightRange> > >, _ForwardIter
= HighlightRange*]'
/usr/include/c++/3.3/bits/stl_uninitialized.h:112:   instantiated from
`_ForwardIter std::uninitialized_copy(_InputIter, _InputIter, _ForwardIter)
[with _InputIter = __gnu_cxx::__normal_iterator<const HighlightRange*,
std::vector<HighlightRange, std::allocator<HighlightRange> > >, _ForwardIter
= HighlightRange*]'
/usr/include/c++/3.3/bits/stl_vector.h:266:   instantiated from
`std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp
= HighlightRange, _Alloc = std::allocator<HighlightRange>]'
kspread_canvas.cc:6007:   instantiated from here
/usr/include/c++/3.3/bits/stl_construct.h:78: error: invalid use of undefined
   type `struct HighlightRange'
kspread_canvas.h:72: error: forward declaration of `struct HighlightRange'
make[3]: *** [kspread_canvas.lo] Error 1
make[3]: Leaving directory `/usr/src/koffice/kspread'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/koffice/kspread'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/koffice'
make: *** [all] Error 2

I noticed this happen after HighlightRange class moved to its own source files
in the svn. I can not find highlight_range.h and highlight_range.cc files in
the KSpread directory, or maybe I missed something?

Thanks for all your help.

Regards,

Fredy Yanardi
____________________________________
koffice mailing list
[hidden email]
To unsubscribe please visit:
https://mail.kde.org/mailman/listinfo/koffice
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile KSpread

mecirt (Bugzilla)
On 10/16/05, Fredy Yanardi <[hidden email]> wrote:
> Today I updated my koffice svn copy to the latest revision, but I no longer
> can compile KSpread. Here is the error produced by make:
>
> kspread_canvas.cc:70:29: highlight_range.h: No such file or directory

Aye, looks like the author of this change forgot to "svn add" the
necessary files. It should get fixed soonish. Nothing's wrong on your
side.

/ Tomas
____________________________________
koffice mailing list
[hidden email]
To unsubscribe please visit:
https://mail.kde.org/mailman/listinfo/koffice
Reply | Threaded
Open this post in threaded view
|

Re: Can't compile KSpread

fyanardi (Bugzilla)
On 16 October 2005 pm 15:33, Tomas Mecir wrote:

> On 10/16/05, Fredy Yanardi <[hidden email]> wrote:
> > Today I updated my koffice svn copy to the latest revision, but I no
> > longer can compile KSpread. Here is the error produced by make:
> >
> > kspread_canvas.cc:70:29: highlight_range.h: No such file or directory
>
> Aye, looks like the author of this change forgot to "svn add" the
> necessary files. It should get fixed soonish. Nothing's wrong on your
> side.
>
> / Tomas
> ____________________________________
> koffice mailing list
> [hidden email]
> To unsubscribe please visit:
> https://mail.kde.org/mailman/listinfo/koffice

Thanks for the clarification Tomas :)

Regards,

Fredy Yanardi
____________________________________
koffice mailing list
[hidden email]
To unsubscribe please visit:
https://mail.kde.org/mailman/listinfo/koffice