Guest User

Untitled

a guest
Feb 25th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. g++ -Wall -c -o Precision_DiffFinie.o -I`~/root-6.12.04/builddir/bin/root-config --incdir` Precision_DiffFinie.cpp
  2. In file included from /home/benjamin/root-6.12.04/builddir/include/RtypesCore.h:23:0,
  3. from /home/benjamin/root-6.12.04/builddir/include/Rtypes.h:23,
  4. from /home/benjamin/root-6.12.04/builddir/include/TObject.h:17,
  5. from /home/benjamin/root-6.12.04/builddir/include/TNamed.h:25,
  6. from /home/benjamin/root-6.12.04/builddir/include/TGraph.h:24,
  7. from Precision_DiffFinie.cpp:15:
  8. /home/benjamin/root-6.12.04/builddir/include/RConfig.h:47:4: error: #error "ROOT requires support for C++11 or higher."
  9. # error "ROOT requires support for C++11 or higher."
  10. ^
  11. /home/benjamin/root-6.12.04/builddir/include/RConfig.h:49:5: error: #error "Pass `-std=c++11` as compiler argument."
  12. #error "Pass `-std=c++11` as compiler argument."
  13. ^
  14. In file included from /usr/include/c++/5/atomic:38:0,
  15. from /home/benjamin/root-6.12.04/builddir/include/Rtypes.h:29,
  16. from /home/benjamin/root-6.12.04/builddir/include/TObject.h:17,
  17. from /home/benjamin/root-6.12.04/builddir/include/TNamed.h:25,
  18. from /home/benjamin/root-6.12.04/builddir/include/TGraph.h:24,
  19. from Precision_DiffFinie.cpp:15:
  20. /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
  21. #error This file requires compiler and library support
  22.  
  23. # Makefile pour les exercices de calculs numeriques
  24.  
  25. # definition du compilateur
  26. GPP=g++ -Wall
  27.  
  28. # lien vers les fichiers d'en-tete des classes ROOT (ROOTINC) et les librairies (ROOTLIB), cad les fichiers binaires
  29. ROOTINC=-I`root-config --incdir`
  30. ROOTLIB=`root-config --libs`
  31.  
  32. #La liste des executables a compiler
  33. # les executables sont en .exe pour pouvoir beneficier de la regle generique de conversion de .o en .exe
  34. EXE=MinMaxTableau.exe Optimisation_CalculSerie.exe Precision_DiffFinie.exe MethodeSecante.exe
  35.  
  36. #######################################################################################
  37.  
  38. # la premiere instruction du makefile est celle par défaut - quand on tape make sans donner d'argument après
  39.  
  40. all: ${EXE}
  41.  
  42. #######################################################################################
  43.  
  44. # Compilation
  45.  
  46. # Des classes
  47. %.o:%.cpp %.h
  48. ${GPP} -c -o $@ ${ROOTINC} $<
  49.  
  50. # Des programmes principaux
  51. %.o:%.cpp
  52. ${GPP} -c -o $@ ${ROOTINC} $<
  53.  
  54. #######################################################################################
  55.  
  56. # Edition des liens
  57. # Regle de conversion de chaque .o en .exe
  58. %.exe: %.o
  59. ${GPP} -o $@ $^ ${ROOTLIB}
  60.  
  61. #######################################################################################
  62.  
  63. # nettoyage
  64. clean:
  65. rm -rf *.o ${EXE} *.pdf *.root *.png Print
Add Comment
Please, Sign In to add comment