std_hash_set_fwd.hpp:29: error: redeclared with 3 template parameter(s)
Has anyone seen this type of error before: /usr/include/boost/spirit/home/phoenix/stl/algorithm/detail/././std_hash_set_fwd.hpp:29: error: redeclared with 3 template parameter(s) /usr/include/c++/4.3/backward/hash_set:84: note: previous declaration ‘template<class _Value, class _HashFcn, class _EqualKey, class _Alloc> class __gnu_cxx::hash_set’ used 4 template parameter(s) /usr/include/boost/spirit/home/phoenix/stl/algorithm/detail/././std_hash_set_fwd.hpp:36: error: redeclared with 3 template parameter(s) /usr/include/c++/4.3/backward/hash_set:285: note: previous declaration ‘template<class _Value, class _HashFcn, class _EqualKey, class _Alloc> class __gnu_cxx::hash_multiset’ used 4 template parameter(s) make[2]: *** [Simulation/CMakeFiles/GraphicDisplay.dir/GraphicDisplay/Visualization.o] Error 1 System: debian stable $ gcc -dumpversion 4.3.4 $ apt-cache policy libboost-all-dev libboost-all-dev: Installed: 1.40.0.1 Candidate: 1.40.0.1 Version table: *** 1.40.0.1 0 200 http://ftp.fr.debian.org testing/main Packages 100 http://ftp.fr.debian.org unstable/main Packages 100 /var/lib/dpkg/status Thanks, -- Mathieu
Here is the issue: #include <tulip/Graph.h> // tulip 3.1.2 #include <boost/graph/graph_utility.hpp> // boost 1.40 int main() { return 0; } with: $ cat /usr/include/tulip/Graph.h ... #if (__GNUC__ < 3) #include <hash_map> #else #include <ext/hash_map> #endif I'll check how to work around this clash... On Mon, Nov 30, 2009 at 2:20 PM, Mathieu Malaterre <mathieu.malaterre@gmail.com> wrote:
Has anyone seen this type of error before:
/usr/include/boost/spirit/home/phoenix/stl/algorithm/detail/././std_hash_set_fwd.hpp:29: error: redeclared with 3 template parameter(s) /usr/include/c++/4.3/backward/hash_set:84: note: previous declaration ‘template<class _Value, class _HashFcn, class _EqualKey, class _Alloc> class __gnu_cxx::hash_set’ used 4 template parameter(s) /usr/include/boost/spirit/home/phoenix/stl/algorithm/detail/././std_hash_set_fwd.hpp:36: error: redeclared with 3 template parameter(s) /usr/include/c++/4.3/backward/hash_set:285: note: previous declaration ‘template<class _Value, class _HashFcn, class _EqualKey, class _Alloc> class __gnu_cxx::hash_multiset’ used 4 template parameter(s) make[2]: *** [Simulation/CMakeFiles/GraphicDisplay.dir/GraphicDisplay/Visualization.o] Error 1
System: debian stable $ gcc -dumpversion 4.3.4 $ apt-cache policy libboost-all-dev libboost-all-dev: Installed: 1.40.0.1 Candidate: 1.40.0.1 Version table: *** 1.40.0.1 0 200 http://ftp.fr.debian.org testing/main Packages 100 http://ftp.fr.debian.org unstable/main Packages 100 /var/lib/dpkg/status
Thanks, -- Mathieu
-- Mathieu
AMDG Mathieu Malaterre wrote:
Has anyone seen this type of error before:
/usr/include/boost/spirit/home/phoenix/stl/algorithm/detail/././std_hash_set_fwd.hpp:29: error: redeclared with 3 template parameter(s) /usr/include/c++/4.3/backward/hash_set:84: note: previous declaration ‘template<class _Value, class _HashFcn, class _EqualKey, class _Alloc> class __gnu_cxx::hash_set’ used 4 template parameter(s) /usr/include/boost/spirit/home/phoenix/stl/algorithm/detail/././std_hash_set_fwd.hpp:36: error: redeclared with 3 template parameter(s) /usr/include/c++/4.3/backward/hash_set:285: note: previous declaration ‘template<class _Value, class _HashFcn, class _EqualKey, class _Alloc> class __gnu_cxx::hash_multiset’ used 4 template parameter(s) make[2]: *** [Simulation/CMakeFiles/GraphicDisplay.dir/GraphicDisplay/Visualization.o] Error 1
I think this is fixed in 1.41. In Christ, Steven Watanabe
participants (2)
-
Mathieu Malaterre
-
Steven Watanabe