[haiku-development] GCC 2.95 and the STL

  • From: Brecht Machiels <brecht@xxxxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Sat, 13 Mar 2010 19:49:16 +0100

Hi,

I'm getting stuck building assignfs with GCC 2.95. It builds fine with GCC 4.

In file included from /Data/code/haiku/headers/cpp/list:34,
                 from 
/Data/code/haiku/src/add-ons/kernel/file_systems/assignfs/Assign.h:10,
                 from 
/Data/code/haiku/src/add-ons/kernel/file_systems/assignfs/Volume.h:24,
                 from 
/Data/code/haiku/src/add-ons/kernel/file_systems/assignfs/Node.cpp:11:
/Data/code/haiku/headers/cpp/stl_list.h:247: `list' is not a template type
/Data/code/haiku/headers/cpp/stl_list.h:247: redefinition of `struct list'
/Data/code/haiku/headers/private/kernel/util/list.h:37: previous definition here

I seem to recall reading that namespaces GCC 2.95 can be problematic. Could 
that be related?
Or maybe the STL included with Haiku can use an upgrade?

Cheers,
Brecht

Other related posts: