Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g++ -Wall -c -o Precision_DiffFinie.o -I`~/root-6.12.04/builddir/bin/root-config --incdir` Precision_DiffFinie.cpp
- In file included from /home/benjamin/root-6.12.04/builddir/include/RtypesCore.h:23:0,
- from /home/benjamin/root-6.12.04/builddir/include/Rtypes.h:23,
- from /home/benjamin/root-6.12.04/builddir/include/TObject.h:17,
- from /home/benjamin/root-6.12.04/builddir/include/TNamed.h:25,
- from /home/benjamin/root-6.12.04/builddir/include/TGraph.h:24,
- from Precision_DiffFinie.cpp:15:
- /home/benjamin/root-6.12.04/builddir/include/RConfig.h:47:4: error: #error "ROOT requires support for C++11 or higher."
- # error "ROOT requires support for C++11 or higher."
- ^
- /home/benjamin/root-6.12.04/builddir/include/RConfig.h:49:5: error: #error "Pass `-std=c++11` as compiler argument."
- #error "Pass `-std=c++11` as compiler argument."
- ^
- In file included from /usr/include/c++/5/atomic:38:0,
- from /home/benjamin/root-6.12.04/builddir/include/Rtypes.h:29,
- from /home/benjamin/root-6.12.04/builddir/include/TObject.h:17,
- from /home/benjamin/root-6.12.04/builddir/include/TNamed.h:25,
- from /home/benjamin/root-6.12.04/builddir/include/TGraph.h:24,
- from Precision_DiffFinie.cpp:15:
- /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.
- #error This file requires compiler and library support
- # Makefile pour les exercices de calculs numeriques
- # definition du compilateur
- GPP=g++ -Wall
- # lien vers les fichiers d'en-tete des classes ROOT (ROOTINC) et les librairies (ROOTLIB), cad les fichiers binaires
- ROOTINC=-I`root-config --incdir`
- ROOTLIB=`root-config --libs`
- #La liste des executables a compiler
- # les executables sont en .exe pour pouvoir beneficier de la regle generique de conversion de .o en .exe
- EXE=MinMaxTableau.exe Optimisation_CalculSerie.exe Precision_DiffFinie.exe MethodeSecante.exe
- #######################################################################################
- # la premiere instruction du makefile est celle par défaut - quand on tape make sans donner d'argument après
- all: ${EXE}
- #######################################################################################
- # Compilation
- # Des classes
- %.o:%.cpp %.h
- ${GPP} -c -o $@ ${ROOTINC} $<
- # Des programmes principaux
- %.o:%.cpp
- ${GPP} -c -o $@ ${ROOTINC} $<
- #######################################################################################
- # Edition des liens
- # Regle de conversion de chaque .o en .exe
- %.exe: %.o
- ${GPP} -o $@ $^ ${ROOTLIB}
- #######################################################################################
- # nettoyage
- clean:
- rm -rf *.o ${EXE} *.pdf *.root *.png Print
Add Comment
Please, Sign In to add comment