[ptx] Problem - Changes to CVS - 040930

Douglas Wilkins douglasw at zahav.net.il
Sun Oct 3 09:35:16 BST 2004


Hi there,
The latest changes checked into CVS do not compile under linux (GCC
3.4.1). 
Specifically, if you want to use this in PointMatching.h (line 191):

__gnu_cxx::random_sample(feat1.begin(), feat1.end(),
           ^^^^^^^^^^^^^
you need this:

// BAD: sgi stl extension
#include <ext/algorithm>

Not sure what other effects re-including this header will have on other
platforms but the attached patch reverts the change. hugin compiled with
this patch seems to run correctly.

Perhaps the better fix might be to add random_sample to stl_utils ?

regards,
Doug

PS I like the new logo! :-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: hugin-stl.patch
Type: text/x-patch
Size: 432 bytes
Desc: not available
Url : http://www.email-lists.org/pipermail/ptx/attachments/20041003/31cb797e/hugin-stl.bin


More information about the ptX mailing list