Hi,
When I compile inkscape source code got by CVS on Ubuntu Linux, I get a compilation error:
./configure make ...
ui/dialog/align-and-distribute.cpp: In member function \u2018std::_List_iterator<SPItem*> Inkscape::UI::Dialog::AlignAndDistribute::find_master(std::list<SPItem*, std::allocator<SPItem*> >&, bool)\u2019: ui/dialog/align-and-distribute.cpp:1029: error: conversion from \u2018int\u2019 to non-scalar type \u2018std::_List_iterator<SPItem*>\u2019 requested ./util/glib-list-iterators.h: In member function \u2018T* const& Inkscape::Util::GSListConstIterator<T*>::operator*() const [with T = SPItem]\u2019: /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:1117: instantiated from \u2018void std::list<_Tp, _Alloc>::_M_insert_dispatch(std::_List_iterator<_Tp>, _InputIterator, _InputIterator, __false_type) [with _InputIterator = Inkscape::Util::GSListConstIterator<SPItem*>, _Tp = SPItem*, _Alloc = std::allocator<SPItem*>]\u2019 /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:830: instantiated from \u2018void std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp>, _InputIterator, _InputIterator) [with _InputIterator = Inkscape::Util::GSListConstIterator<SPItem*>, _Tp = SPItem*, _Alloc = std::allocator<SPItem*>]\u2019 ui/dialog/align-and-distribute.cpp:125: instantiated from here ./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules make[2]: *** [ui/dialog/align-and-distribute.o] Error 1 make[2]: Leaving directory `/home/flame/WorkDir/temp/inkscape/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/flame/WorkDir/temp/inkscape' make: *** [all] Error 2
It seems wrong type conversion, but I have no idea about it.
I hope your help. Thanks!
Flame
_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
The copy of the source in CVS is no longer current. Please check out from Subversion instead.
-mental
participants (2)
-
flame flame
-
MenTaLguY