[SDL] #include "SDL.h"

Glenn Maynard g_sdl at zewt.org
Wed Nov 12 13:31:01 PST 2003

On Wed, Nov 12, 2003 at 08:54:56PM +0100, Jacek Popławski wrote:
> 5) compiling with gcc 3.3 produces "long long" warnings:
> /usr/local/gcc3/bin/g++ -pedantic -Wall -o sdl-test.o -c `sdl-config --cflags` sdl-test.cc 

Drop -pedantic.  It's documented as:

"This option is not intended to be useful; it exists only to satisfy
pedants who would otherwise claim that GNU CC fails to support the
ANSI standard."

You want -Wall -W, not -pedantic.  Libraries aren't expected to compile
with -pedantic without warnings.

> 7) Exactly same problem with <SDL.h> and <SDL/SDL.h>. So changing "" into <>
> changes nothing in output, but adding 'SDL/' fixes warnings.
> Could anyone explain why this happen?

Not sure, but you probably shouldn't be using -pedantic to begin with.

Glenn Maynard

More information about the SDL mailing list