[vorbis-dev] #include scheme in vorbis project
Trick
gerry at c64.org
Wed Oct 10 14:03:59 PDT 2001
I asked about something similar on the SDL mailinglist a while ago;
Why do SDL and SDL programs use #include "SDL.h" instead of #include
<SDL/SDL.h> ? I even got an answer =)
Apparently <> is only truly portable with the _standard_ libs, and
shouldn't be used for anything else. Same goes for relative paths.
Fx, the SDL header file isn't in the standard SDL subdir when
developing on MSVC for some obscure reason (surprise), so relative
paths are also a bad idea.
Solution: Use double quotes and NO relative paths, and define all
include locations with -I options to the compiler / preprocessor.
This is where the config-info files come in handy on *nix systems -
just call $(CC) with `sdl-config --cflags` as an argument and
everything is set up as required.. Anyway, doing this shouldn't be
hard on any system with a make-like build process, just add the
correct -I to the makefile.
--
Trick
__________________________________________
Linux User #229006 * http://counter.li.org
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis-dev
mailing list