Well, that's imposing something on C/C++ which is not defined by the
standard, so I don't know whether I agree with that behavior or not. Are
you saying that because makedeps has decided that <> means a system header
that everyone should believe that as well?
Dave
jason@openinfor
matics.com To: [EMAIL PROTECTED]
(Jason E. cc: (bcc: David N Bertoni/CAM/Lotus)
Stewart) Subject: Using #include "" instead of
#include <>
08/17/2001
02:21 PM
Please respond
to xerces-c-dev
"Murphy, James" <[EMAIL PROTECTED]> writes:
> While were on the subject of upsetting apple carts -
>
> I would also like to change the include file convention to use
> quotes instead of angle brackets. In this way I wouldn't have to
> modify my include path at all for any of my projects! Everything
> would work relative to each file (something the preprocessor wont do
> if you use <> to include)
I've wondered why so many projects do this. #include <foo.h> and
#include "foo.h" are definately handled different on Unix systems,
#especially by makedepends.
Reading the man page for cpp says (for example):
-MM [-MG]
Like `-M' but mention only the files included with
`#include "file"'. System header files included
with `#include <file>' are omitted.
Also see the '-I-' entry.
angle brackets are for 'system header' files. Any project header files
should be referenced by double quotes. Perhaps windows doesn't care,
but unix does.
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]