This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

-I/usr/include


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]