Bonjour
J'ai un soucis sans compendre pkoi. Je dvp sous DevCpp.
Je souhaite simplement lancer un mp3 avec la lib fmod.
mais j'ai cette erreur :
C:\DevCpp\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined reference to `WinMain@16'
pourtant j'ai bien linker toutes les lib et ajouter tous les .a et .h
voici mon code :
---------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <fmod.h>
#include <fmod_errors.h>
#include <wincompat.h>
#include <windows.h>
#include <math.h>
FMUSIC_MODULE *son;
int Musique()
{
FSOUND_Init(44100, 32, 0);
son = FMUSIC_LoadSong("test.mp3");
FMUSIC_PlaySong(son);
return 0;
}
Merci de votre aide !
Super_Tonic