Compiling hugin with gcc 2.95

Pablo d'Angelo pablo at mathematik.uni-ulm.de
Thu Sep 4 14:17:28 BST 2003


Hi,

On Thu, 04 Sep 2003, Frederic Mantegazza wrote:

> Well, gcc 2.95 does not know the vector::at() method. So, I get a lot of:
> 
> no matching function for call to
>    `vector<PT::OptimizerSettings,allocator<PT::OptimizerSettings> >::at 
>    (unsigned int &)'

Ok, I just replaced all calls of vector.at(i) to vector.[i], this works
with all STL implementations.

> A also get:
> 
> ../include/common/stl_utils.h: In function `class string tolower(const
>    string &)':
> ../include/common/stl_utils.h:47: `::transform' undeclared (first use here)
> ../include/common/stl_utils.h:47: parse error before `,'

missing #include. fixed in cvs.

> I don't know if there is a way to get all that working under gcc 2.95. You 
> are not going to re-write the stl lib !!!

nope just using the older function works ;)

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


More information about the ptX mailing list