Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.98 KB | None | 0 0
  1. ------------------------------------------
  2. - FICHIER WAVREADER.c OU IL Y A LA PARTIE LECTURE DU FICHIER .WAV, J'AI RIEN CHANGé SAUF L'AJOUT DES BIBLI -
  3.  
  4. #include "WAVEStruct.h"
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. -----
  8. TU CONNAIS LA SUITE
  9. -----------------------------------------
  10.  
  11. -----------------------------------------
  12. - FICHIER WAVEStruct.h
  13.  
  14. RIEN CHANGé
  15. -----------------------------------------
  16.  
  17. - FICHIER MAIN.C ------------------------
  18.  
  19. #include "wavreader.c"
  20.  
  21. int main(){
  22.     WAVE *structureWAVE;
  23.     char *path = "/home/majorgrubert/Documents/music_source.wav";
  24.     Read_Wav (path,structureWAVE); 
  25.     return 0;
  26. }
  27. ----------------------------------------
  28.  
  29. L'ERREUR DE COMPILATION
  30.  
  31. gcc main.c WAVEStruct.h wavreader.c -o Programme
  32.  
  33. /tmp/cc1lnKdA.o: In function `Read_Wav':
  34. wavreader.c:(.text+0x0): multiple definition of `Read_Wav'
  35. /tmp/cc7KOdOv.o:main.c:(.text+0x0): first defined here
  36. collect2: ld returned 1 exit status
  37.  
  38. ---------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement