20Fermer22
Yoshi NoirLe 21/11/2014 à 22:00
Folco (./19) :
In file included from /usr/include/allegro5/base.h:36:0,
from /usr/include/allegro5/allegro.h:26,
from main.c:4:
/usr/include/stdlib.h:321:17: note: previous declaration of ‘random’ was here extern long int random (void) __THROW;

Apparemment tu as déjà une lib qui utilise le nom random();
Remplace toutes les occurrences de random par _random dans le code.
Folco (./19) :
main.c:17:24: error: conflicting types for ‘al_destroy_sample’
#define oslDeleteSound al_destroy_sample
^
main.c:312:6: note: in expansion of macro ‘oslDeleteSound’
void oslDeleteSound(OSL_SOUND sound)
^
In file included from /usr/include/allegro5/base.h:50:0,
from /usr/include/allegro5/allegro.h:26,
from main.c:4:
/usr/include/allegro5/allegro_audio.h:176:1: note: previous declaration of ‘al_destroy_sample’ was here ALLEGRO_KCM_AUDIO_FUNC(void, al_destroy_sample, (ALLEGRO_SAMPLE *spl));

Je viens de comprendre : je définis déjà la fonction dans un #define.
Mais je comprends même pas comment Visual C++ a réussi à me compiler ça !

Du coup, commente la ligne « #define oslDeleteSound al_destroy_sample ».

Là ça devrait compiler.