[SDL] compiling problems with SDL.h

Jon Dowland jon.dowland at durham.ac.uk
Sun Nov 30 18:07:14 PST 2003

On Thu, Nov 27, 2003 at 09:26:05PM +0100, ronap at inwind.it wrote:
> gcc -o myfirst myfirst.c
> the compiler say:
> SDL.h no such file or directory
> SDL_INIT_VIDEO undeclared
> SDL_INIT_AUDIO undeclared
> Is gcc command correct ?

No (see below).

> Before compiling I have read sdl faq:

What about this one?

> 1) How I add /usr/local/bin in my execution path?

This depends on your shell. Bash is covered in the FAQ above (question
23 this time).
I suggest reading an introductory guide to UNIX: This and many other
important things should be covered in one. 

> 2) Is It necessary to add /usr/local/bin in my execution path when I
> use gcc compiler? 

Only if you are using a binary in there. Where is sdl-config (assuming
you follow the advice in the faq link above)? 

Jonathan Dowland

More information about the SDL mailing list