Re: [AD] #include <allegro.h> vs #include "allegro.h" in the examples

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Elias Pschernig wrote:
On Sun, 3 Oct 2004 13:50:07 -0700, Robert Ohannessian
<rohannessian@xxxxxxxxxx> wrote:

I think the reason was that the examples get built before Allegro is
installed, so the compiler may not find allegro.h if you use <>.

Yes. But directories specified with -I are searched first. (I suspect
this may have changed at some version of gcc. Or maybe other compilers
like MSVC have no equicalent of -I, and therefore need "" instead of
<>?)

1) every compiler has equivalent of -I. MSVC has, for example, /I :-)

1) i'm repeating myself little bit, but: using "" instead of <> makes _absolutely_ _no_ _difference_ in this case because the header files are not in the examples directory. unless i'm missing anything here there is no way how can "" help compiler to find allegro.h. you still have to use -I

--
Regards,
    Michal




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/