Compiling hugin under debian woody

Pablo d'Angelo pablo at mathematik.uni-ulm.de
Fri Aug 22 17:54:29 BST 2003


Hi!

> Hello folks,
> 
> I'm reading your posts since you started the new hugin project. It seems 
> that you work pretty fast, so I decided to try your snapshot.

:)

> I have a little problem during the compilation. Here is the error I have 
> (I'm using g++-3.0, which is the only g++ >3 version available under 
> debian woody):
> 
>     ---- Compiling CPEditorPanel.cpp (C++)
> g++-3.0 -I. -I../include -Wall -g -I/usr/lib/wx/include/gtk-2.4 
> -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
> -I../   -c -o .obj/CPEditorPanel.o CPEditorPanel.cpp
> CPEditorPanel.cpp: In member function `bool
>    CPEditorPanel::globalPNr2LocalPNr(unsigned int&, unsigned int) const':
> CPEditorPanel.cpp:330: use of `select1st' is ambiguous
> ../include/common/stl_utils.h:61:   first declared as `template<class 
> _Pair>
>    struct select1st' here
> /usr/include/g++-v3/bits/stl_function.h:400:   also declared as 
> `template<class
>    _Pair> struct std::select1st' here
> CPEditorPanel.cpp:330: parse error before `>' token
> CPEditorPanel.cpp: In method `bool CPEditorPanel::PointFineTune(unsigned 
> int,
>    const vigra::Diff2D&, unsigned int, const vigra::Diff2D&, FDiff2D&)':
> CPEditorPanel.cpp:467: warning: unused variable `const PT::Lens&l'
> 
> I don't like the warning on line 330; the following error probably depend 
> on this warning, but how to solve it ?

Hmm, the STL library that comes with 2.95 (and 3.0, I assume) contains
some SGI extensions, which are included in 3.2 only as extensions and
not by default. So I added a copy of them to the sourcecode.

Actually I will just rewrite the code not to use select1st, then there
won't be a problem ;)

ciao
  Pablo
--
http://wurm.wohnheim.uni-ulm.de/~redman/
Please use PGP


More information about the ptX mailing list