This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-I/usr/include
- To: gcc-bugs at gcc dot gnu dot org
- Subject: -I/usr/include
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Fri, 30 Mar 2001 10:44:57 +0100
- Organization: Codesourcery LLC
Hi,
I've just had to debug some C++ code that wasn't building. The culprit
turned out to be that g++ was being invoked as
g++ -I/usr/include ....
This breaks badly.
Would it be a good idea to catch this kind of stupidity earlier on, rather
than later having to wonder why
/usr/include/stddef.h:50: redeclaration of C++ built-in type `wchar_t'
is happening (amongst a pile of other stuff)?
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org