Probs with SDL_EnableKeyRepeat under Linux

I’ve got a problem with :

SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY,
SDL_DEFAULT_REPEAT_INTERVAL);

under Linux with SDL 1.0.4, when I compile the system tells me that :

[root at localhost fSDL]# g++ -O3 file.cpp sdl_config --cflags --libs

file.cpp: In function ‘int main(int,char **)’:

file.cpp:115:‘SDL_DEFAULT_REPEAT_DELAY’ undeclared (first use this
function)

file.cpp:115: {each undeclared indentifier is reprted only once

file.cpp:115: for each function it appaers in.}

file.cpp:116:‘SDL_DEFAULT_REPEAT_INTERVAL’ undeclared (first use this
function)

file.cpp:116: implicit declaration of function ‘int
SDL_EnableKeyRepeat(…)’

So I can’t use this function although I need it !!! what’s the matter
???

Moreover this function works properly under Windows with SDL 1.0.2 !

Please could someone help me ?

Bye

lawouach at caramail.com

I’ve got a problem with :

SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY,
SDL_DEFAULT_REPEAT_INTERVAL);

under Linux with SDL 1.0.4, when I compile the system tells me that :

Have you tried SDL 1.0.8?

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Sam Lantinga wrote:

I’ve got a problem with :

SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY,
SDL_DEFAULT_REPEAT_INTERVAL);

under Linux with SDL 1.0.4, when I compile the system tells me that :

Have you tried SDL 1.0.8?

    -Sam Lantinga                           (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

No it’s true !!
I will try !
Thanx :wink: