Hi,
I'm trying to build
APDF for AROS with GCC4.6
For
this file I'm getting these errors:
/home/mazze/projects/fullaros/aros-src/contrib/apdf/server/gfx.cc: In member function 'void AGfxState::stroke(int, int, APath*, Color, double, CapStyle, JoinStyle, double, DashState&)':
/home/mazze/projects/fullaros/aros-src/contrib/apdf/server/gfx.cc:938:43: error: no match for 'operator=' in 'path1 = path->APath::thicken(lw, cap, join, ml)'
/home/mazze/projects/fullaros/aros-src/contrib/apdf/server/gfx.cc:938:43: note: candidates are:
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:136:7: note: std::auto_ptr<_Tp>& std::auto_ptr<_Tp>::operator=(std::auto_ptr<_Tp>&) [with _Tp = APath, std::auto_ptr<_Tp> = std::auto_ptr<APath>]
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:136:7: note: no known conversion for argument 1 from 'APath*' to 'std::auto_ptr<APath>&'
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:154:9: note: template<class _Tp1> std::auto_ptr& std::auto_ptr::operator=(std::auto_ptr<_Tp1>&) [with _Tp1 = _Tp1, _Tp = APath, std::auto_ptr<_Tp> = std::auto_ptr<APath>]
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:264:7: note: std::auto_ptr<_Tp>& std::auto_ptr<_Tp>::operator=(std::auto_ptr_ref<_Tp>) [with _Tp = APath, std::auto_ptr<_Tp> = std::auto_ptr<APath>]
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:264:7: note: no known conversion for argument 1 from 'APath*' to 'std::auto_ptr_ref<APath>'
/home/mazze/projects/fullaros/aros-src/contrib/apdf/server/gfx.cc:942:32: error: no match for 'operator=' in 'path1 = path->APath::make_dashes((* & ds))'
/home/mazze/projects/fullaros/aros-src/contrib/apdf/server/gfx.cc:942:32: note: candidates are:
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:136:7: note: std::auto_ptr<_Tp>& std::auto_ptr<_Tp>::operator=(std::auto_ptr<_Tp>&) [with _Tp = APath, std::auto_ptr<_Tp> = std::auto_ptr<APath>]
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:136:7: note: no known conversion for argument 1 from 'APath*' to 'std::auto_ptr<APath>&'
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:154:9: note: template<class _Tp1> std::auto_ptr& std::auto_ptr::operator=(std::auto_ptr<_Tp1>&) [with _Tp1 = _Tp1, _Tp = APath, std::auto_ptr<_Tp> = std::auto_ptr<APath>]
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:264:7: note: std::auto_ptr<_Tp>& std::auto_ptr<_Tp>::operator=(std::auto_ptr_ref<_Tp>) [with _Tp = APath, std::auto_ptr<_Tp> = std::auto_ptr<APath>]
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:264:7: note: no known conversion for argument 1 from 'APath*' to 'std::auto_ptr_ref<APath>'
/home/mazze/projects/fullaros/aros-src/contrib/apdf/server/gfx.cc:943:44: error: no match for 'operator=' in 'path1 = path1.std::auto_ptr<_Tp>::operator-> [with _Tp = APath, std::auto_ptr<_Tp>::element_type = APath]()->APath::thicken(lw, cap, join, ml)'
/home/mazze/projects/fullaros/aros-src/contrib/apdf/server/gfx.cc:943:44: note: candidates are:
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:136:7: note: std::auto_ptr<_Tp>& std::auto_ptr<_Tp>::operator=(std::auto_ptr<_Tp>&) [with _Tp = APath, std::auto_ptr<_Tp> = std::auto_ptr<APath>]
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:136:7: note: no known conversion for argument 1 from 'APath*' to 'std::auto_ptr<APath>&'
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:154:9: note: template<class _Tp1> std::auto_ptr& std::auto_ptr::operator=(std::auto_ptr<_Tp1>&) [with _Tp1 = _Tp1, _Tp = APath, std::auto_ptr<_Tp> = std::auto_ptr<APath>]
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:264:7: note: std::auto_ptr<_Tp>& std::auto_ptr<_Tp>::operator=(std::auto_ptr_ref<_Tp>) [with _Tp = APath, std::auto_ptr<_Tp> = std::auto_ptr<APath>]
/home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/4.6.4/include/c++/backward/auto_ptr.h:264:7: note: no known conversion for argument 1 from 'APath*' to 'std::auto_ptr_ref<APath>'
How to fix that? I had prior added "std::" to all "auto_ptr" because the compiler suggested that.
[ Editiert durch Mazze 12.04.2015 - 19:21 ]