Bonjour,
Je développe parfois en Java (Java version JDK 1.6 update 7), je souhaites apprendre le C++, et j'ai acheté le livre "Le langage c++" de l'éditeur MicroApplication :
Le Langage C++. Avec Cd-RomClaus Richter
http://www.priceminister.com/offer/buy/673331/Collectif-Le-Langage-C-Livre.html
Malheureusement, je rencontre des problèmes de compilation :
Exemple : Simple affichage : Ciseaux - Pierre - Feuille - Feu
cpfp.cpp
// permet d'accéder au fichier d'en-tête iostream.h
#include <iostream.h>
//Programme principal
void main (void)
{
cout <<" CISEAUX - PIERRE - FEUILLE - PUITS\n";
}
J'ai essayé de compiler cette source sous Linux :
1) J'ai installé le compilateur sous Linux Ubuntu :
http://doc.ubuntu-fr.org/compilateurs
--> Compilation :
gcc -c Wall main.cpp
gcc: Wall : Aucun fichier ou dossier de ce type
Dans le fichier inclus à partir de /usr/include/c++/4.2/backward/iostream.h:31,
à partir de main.cpp:1:
/usr/include/c++/4.2/backward/backward_warning.h:32:2: attention : #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
main.cpp:2:22: erreur: conio.h : Aucun fichier ou dossier de ce type
gcc -c -Wno-deprecated main.cpp
main.cpp:2:22: erreur: conio.h : Aucun fichier ou dossier de ce type
Comment résoudre ce type de problème ?