O
Ole Nielsby
The standard doesn't define this but what conventions do projects use?
As I understand it,
#include <somelibrary.h>
is used for including system headers and those of frameworks such
as wxWidgets - and
#include "someheader.h"
is used for more application-specific things.
The VC8 docs say, #include <...> searches the paths set for the
project, but #include "..." tries the dir of the file with the include,
and the file that included it etc... before it searches the project
setting include paths.
Is this a defacto standard, or do compilers implement different
ways of doing it? Is there a sort of minimal conventions programmers
stick to to be compiler-independent?
As I understand it,
#include <somelibrary.h>
is used for including system headers and those of frameworks such
as wxWidgets - and
#include "someheader.h"
is used for more application-specific things.
The VC8 docs say, #include <...> searches the paths set for the
project, but #include "..." tries the dir of the file with the include,
and the file that included it etc... before it searches the project
setting include paths.
Is this a defacto standard, or do compilers implement different
ways of doing it? Is there a sort of minimal conventions programmers
stick to to be compiler-independent?