I agree. thats why we fixed it, maybe not all of it, but I compile with VS2005 now. did you try the 0.7 release?<br><a href="http://libkdtree.alioth.debian.org/">http://libkdtree.alioth.debian.org/</a><br><br><div class="gmail_quote">
2009/5/5 Lindley M French <span dir="ltr"><<a href="mailto:lfrench1@gmu.edu">lfrench1@gmu.edu</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Shortly after sending this I encountered the problem: __out is a macro defined in some header or other. I replaced all instances of it with it__out and now it builds. (Still lots of warnings, but Boost has some of those too....choosing not to care.)<br>
<br>
I would suggest that modeling the code after the naming scheme of the standard library was, in this case, a very bad idea. There's a reason why names starting with _ and __ are considered "reserved"....<br>
<div><div></div><div class="h5"><br>
----- Original Message -----<br>
From: Lindley M French <<a href="mailto:lfrench1@gmu.edu">lfrench1@gmu.edu</a>><br>
Date: Monday, May 4, 2009 6:54 pm<br>
Subject: Compiling in VS2005 and XCode<br>
<br>
> I have libkdtree++ 0.6.2. I've been using it for a graduate class<br>
> project, and it's offered a large speed improvement over the<br>
> search methods I tried on my own.<br>
><br>
> I had difficulty getting it to build both on XCode (at home) and<br>
> Visual Studio 2005 (school). On XCode I got it working following a<br>
> suggestion I found online to comment as the following:<br>
> typedef _Node/*<_Val>*/* _Link_type;<br>
> typedef _Node/*<_Val>*/ const* _Link_const_type;<br>
> It now builds cleanly on XCode.<br>
><br>
> However, VS still isn't working. The errors I'm getting seem to be<br>
> related to find_within_range:<br>
> kdtree.hpp(374) : error C2561:<br>
> 'KDTree::KDTree<__K,_Val,_Acc>::find_within_range' : function must<br>
> return a value<br>
> kdtree.hpp(376) : error C2059: syntax error : ')'<br>
><br>
> Now, since this is a template, it's possible the issue is related<br>
> to my usage of the function, so that's here:<br>
> kdtree.find_within_range(-1, maxdist,<br>
> std::back_inserter(indexes_out));<br>
> Rather than storing actual values within the KDTree, I'm simply<br>
> storing indexes which are interpreted by the bracket-lookup class.<br>
> -1 is a special index representing the current query point.<br>
> indexes_out is thus a std::vector<int>, and the KDTree itself is<br>
> declared as KDTree::KDTree<3, int, DimIndex> where DimIndex is my<br>
> index-to-feature functor.<br>
><br>
> Any quick-fix for this issue available? I'll note again that the<br>
> above all compiles cleanly in XCode, so it's probably not an<br>
> egregious error but some minor bit of syntax somewhere that VS is<br>
> choking on.<br>
><br>
> _______________________________________________<br>
> libkdtree-devel mailing list<br>
> <a href="mailto:libkdtree-devel@lists.alioth.debian.org">libkdtree-devel@lists.alioth.debian.org</a><br>
> <a href="http://lists.alioth.debian.org/mailman/listinfo/libkdtree-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/libkdtree-devel</a><br>
><br>
<br>
_______________________________________________<br>
libkdtree-devel mailing list<br>
<a href="mailto:libkdtree-devel@lists.alioth.debian.org">libkdtree-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/libkdtree-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/libkdtree-devel</a><br>
</div></div></blockquote></div><br>