hackt
hackt copied to clipboard
gcc 5.2.1 doesn't like the STL wrappers
In file included from ./util/sublist.hh:11:0,
from
Eh, I was logged into the wrong account... Oh well.
nbingham@Lira:~/src/hackt$ gcc --version
gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
nbingham@Lira:~/src/hackt$ g++ --version
g++ (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It seems as though this applies for clang as well (This was a fresh clone):
nbingham@Lira:~/src/hackt$ clang --version
Ubuntu clang version 3.6.2-1 (tags/RELEASE_362/final) (based on LLVM 3.6.2)
Target: x86_64-pc-linux-gnu
Thread model: posix
nbingham@Lira:~/src/hackt$ ./bootstrap
nbingham@Lira:~/src/hackt$ ./configure CXX=clang CC=clang
nbingham@Lira:~/src/hackt$ make
./util/STL/list_fwd.hh:22:10: error: unknown type name 'list'
typedef list<T, std::allocator<T> > type;
^
./util/STL/list_fwd.hh:22:14: error: expected member name or ';' after declaration specifiers
typedef list<T, std::allocator<T> > type;
~~~~~~~~~~~~^
I actually looked at this a few months ago, and started trying to make my forward declaration headers work with GNU libstdc++ and (clang) libc++, and it was a significant (unfinished) effort. I'm thinking that maybe it's not worth maintaining these forward declaration headers -- one option is to scrap them in favor of including standard full headers (,
Increased compile time for something shouldn't often be compiled is not such a terrible thing.
On Tue, May 3, 2016 at 6:55 PM, David Fang [email protected] wrote:
I actually looked at this a few months ago, and started trying to make my forward declaration headers work with GNU libstdc++ and (clang) libc++, and it was a significant (unfinished) effort. I'm thinking that maybe it's not worth maintaining these forward declaration headers -- one option is to scrap them in favor of including standard full headers (, ) at the expense of increased compile time in some cases.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/fangism/hackt/issues/40#issuecomment-216689461
I just ran into this same error while compiling with gcc 6.3.1. Is there a workaround?
Somehow this message escaped my attention. Workaround is to replace these silly headers with the original header, like . Need to find time to modernize the codebase...