Fixed in 0.7.0-2.
** Package changed: libkdtree++ (Ubuntu) = ubuntu
** Changed in: ubuntu
Status: Confirmed = Fix Released
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/105040
Title:
As a follow up to Bart here is the full unified patch for libkdtree++
6.2 support of GCC 4.3. Having the unpatched libkdtree++ in Intrepid
without it doesn't make much sense given GCC 4.3 is now the default
compiler!
** Attachment added: libkdtree-gcc43.patch
With:
- Ubuntu 8.04.1,
- gcc 4.2.3,
- libkdtree++-dev 0.2.1-1,
and this test one-liner:
#include kdtree++/kdtree.hpp
this is the compiler output:
$ g++ -Wall -Werror -pedantic test.cpp
In file included from test.cpp:1:
/usr/include/kdtree++/kdtree.hpp:75: error: declaration of ‘typedef
With:
- Ubuntu 8.10 (development branch),
- gcc 4.3.2,
- libkdtree++-dev 0.6.2-1,
and the same one-liner:
$ g++ -Wall -Werror -pedantic test.cpp
In file included from /usr/include/kdtree++/kdtree.hpp:61,
from test.cpp:1:
/usr/include/kdtree++/allocator.hpp:21: error:
Made some changes to get this thing compiling:
diff -r kdtree++/allocator.hpp /usr/include/kdtree++/allocator.hpp
21c21
typedef ::KDTree::_Node_Tp _Node;
---
typedef _Node_Tp _Node;
diff -r kdtree++/kdtree.hpp /usr/include/kdtree++/kdtree.hpp
56d55
#include algorithm
91c90
The bug is still standing. I found out that the author has released
several upgrades that have not been added to Ubuntu:
http://libkdtree.alioth.debian.org/
The current version is 0.6.2, but Gutsy has version 0.2.1-1!
--
libkdtree++-dev does not compile with g++-4.0
I have verified the bug in several systems, and also got positive review
in the comments. Furthermore, the fix is so simple...
** Changed in: libkdtree++ (Ubuntu)
Status: New = Confirmed
--
libkdtree++-dev does not compile with g++-4.0
https://bugs.launchpad.net/bugs/105040
You received
I can confirm the problem is happening here too.Only with GCC 4.0
--
libkdtree++-dev does not compile with g++-4.0
https://bugs.launchpad.net/bugs/105040
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
I forgot to add this. The code that launches the errors is as simple as
the following:
#include stdlib.h
#include iostream
#include vector
#include set
#include kdtree++/kdtree.hpp
--
libkdtree++-dev does not compile with g++-4.0
https://bugs.launchpad.net/bugs/105040
You received this bug