The problem I always seem to come back to is that it can’t find
SDL.h… which is where I put it… Am I supposed to state someplace
the path of all this? I never found out anything which would suggest
that in anything I’ve read, so I assumed that the instructions did
something which would tell the compiler where it was… but it still
isn’t finding it.
Try forcing the location of the libs and of the includes, for example
gcc -o file.exe file.c -I/usr/include/SDL -lSDL /usr/lib/libSDL_image-1.2.so.0
(at least, in linux it -does- work with me).
I haven’t figured out what sdl-config --cflags --clibs
means yet, because gcc simply says to me “unknown folder or file”, while if I execute from the shell
#sdl-config --cflags --clibs
it seems to setup SDL. Am i wrong? (Sam, this is for you…)
15/04/02 21.11.04, “Mark Grant” <@Mark_Grant> wrote:On 15 Apr 2002, at 21:47, CRV?ADER/KY wrote:
I’ve been tearing my hair out for the past 24 hours trying to get SDL
to work on my windows box. I’ve followed various sets of
instructions, some of which resulted in hour long compiles with few
or no results.
Basically what I need is the simplest way to install the SDL
system into a normal cygwin setup. One promising thing I read suggested
decompressing the development library and placing the .a’s in usr/local/lib,
the .h’s in usr/local/include/SDL and the sdl.dll and sdl-config in
/usr/local/bin
I did this and followed the individuals directions on how to compile a test
program:
gcc -o file.exe file.c sdl-config --cflags --clibs
But to no avail. I’m sure I’m being stupid but I’ve run out of ideas.
Thanks in advance,
Mark Grant
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl