Bonjour, a tous
voilà j'ai installé la bilbiothèque avec soin suivant les instructions récupérées chez Club d'entraide des développeurs francophones . Apres 2 jours passés sur Internet a lire des docs en anglais je bloque. Je compile mais je ne linke pas .Voici la source test.c

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "SDL.h" /* All SDL apps need this */ 
#include <stdio.h> 
#include <stdlib.h> /* for exit() (on VC7 at least) */ 
 
int main() 
{ 
 
printf("Initializing SDL.\n"); 
 
/* Initialize defaults, Video and Audio subsystems */ 
if((SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1)) 
{ 
printf("Could not initialize SDL: %s.\n", SDL_GetError()); 
exit(-1); 
} 
 
printf("SDL initialized.\n"); 
 
printf("Quiting SDL.\n"); 
 
/* Shutdown all subsystems */ 
SDL_Quit(); 
 
printf("Quiting....\n"); 
 
exit(0); 
}
Lignes de commande:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
[root@localhost enzoc]# gcc `sdl-config --cflags` -Wall -c test.c 
[root@localhost enzoc]# gcc `sdl-config --libs` -o test test.o 
test.o(.text+0x32): In function `main': 
: undefined reference to `SDL_Init' 
test.o(.text+0x45): In function `main': 
: undefined reference to `SDL_GetError' 
test.o(.text+0x85): In function `main': 
: undefined reference to `SDL_Quit' 
collect2: ld returned 1 exit status 
[root@localhost enzoc]#

La seule piste est que en exécutant /sbin/ldconfig -v je trouve:
/usr/lib:
ldconfig: Cannot stat /usr/lib/libSDL.so: No such file or directory

Pourtant dans /usr/lib un liens symbolique !libSDL.so est présent.
En éditant ce lien je vois:
broken symbolic link to `libSDL-1.2.so.0.11.2'
( a remarque le caractère ' a la fin de la chaine est-il correcte?)

J'espère que quelqu'un puisse m'aider parceque j'ai épuisé toutes mes ressources.

Merci