Problem (& Solution) compiling libkdtree++ using Intel Compiler

Paul Harris paulharris at computer.org
Tue Nov 23 11:47:18 UTC 2010


Hi,

Sorry for the delay, I've been busy (aint that always the way).

I've applied the fix to git master, thanks for the tip!

cheers
Paul

On 16 October 2010 00:44, Ferdinand Mitterbauer <
ferdinand.mitterbauer at gmx.at> wrote:

> Problem:
> ~~~~~~~~
> Building a project using libkdtree++ using Intel C++ Compiler 11.1 (on
> Windows 7, 64bit) results in the following error(s):
>
> [...]\libkdtree++\kdtree++/kdtree.hpp(97): error: expected a declaration
>              typename _Cmp = std::less<typename _Acc::result_type>,
>
> [...]\libkdtree++\kdtree++/kdtree.hpp(97): error: expected a ";"
>              typename _Cmp = std::less<typename _Acc::result_type>,
>
> [... skipped bunch off error messages ... ]
>
> The offending line(s) in kdtree.hpp:
> 93:  template <size_t const __K, typename _Val,
> 94:       typename _Acc = _Bracket_accessor<_Val>,
> 95:           typename _Dist = squared_difference<typename
> _Acc::result_type,
> 96:               typename _Acc::result_type>,
> 97:       typename _Cmp = std::less<typename _Acc::result_type>,
> 98:       typename _Alloc = std::allocator<_Node<_Val> > >
> 99:    class KDTree : protected _Alloc_base<_Val, _Alloc>
>
>
> Suggested solution:
> ~~~~~~~~~~~~~~~~~~~
> Insert line "#include <functional>" in file kdtree.hpp
> (Maybe Line 70 - right after the line "#include <algorithm>" - would be a
> nice place).
>
> greetings,
> Ferdinand
>
> _______________________________________________
> libkdtree-devel mailing list
> libkdtree-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/libkdtree-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/libkdtree-devel/attachments/20101123/a39552fe/attachment.htm>


More information about the libkdtree-devel mailing list