Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3019 connectés 

  FORUM HardWare.fr
  Programmation

  comment on compile un .cc sous linux ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

comment on compile un .cc sous linux ?

n°15118
drakkeng
Posté le 20-02-2001 à 17:09:47  profilanswer
 

et pendant que j'y suis comment on l'exécute ?

mood
Publicité
Posté le 20-02-2001 à 17:09:47  profilanswer
 

n°15120
Toxin
Carpe ★★ Vitam
Posté le 20-02-2001 à 17:16:20  profilanswer
 

gcc -c toto.cc => pour faire un .o
gcc toto.cc -o toto => pour faire un toto exécutable.


---------------
"If you can walk away from a landing, it's a good landing. If you use the airplane the next day, it's an outstanding landing." - Chuck Yeager. | Ma chaîne YT
n°15121
Toxin
Carpe ★★ Vitam
Posté le 20-02-2001 à 17:16:52  profilanswer
 

Mais bon vaux mieux avoir la sagesse d'avoir prévu d'installer gcc :D


---------------
"If you can walk away from a landing, it's a good landing. If you use the airplane the next day, it's an outstanding landing." - Chuck Yeager. | Ma chaîne YT
n°15122
MC
retour à la raison
Posté le 20-02-2001 à 17:16:52  profilanswer
 

g++ -o <nom de l'exec> <nom du fichier C++>
 
Voila

n°15123
drakkeng
Posté le 20-02-2001 à 17:19:25  profilanswer
 

ok merci beaucoup ,j'ai installé linux en mode Developpeur donc je dois avoir gcc !!


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  comment on compile un .cc sous linux ?

 

Sujets relatifs
Commande pour recompiler tout le noyeau LINUX (Corporate Server) ?cous de systeme sous linux sur le net?
client serveur C++ linux ??Programme compile mais marche pas ! [JAVA]
Linux install !!!Programmer en C++ sous Linux
Delphi sous Linux ?[JAVA / LINUX / EMACS] (oui, tout ça)
Aide pour installation linux php, mysql, apache.Install du j2ee ( Linux )
Plus de sujets relatifs à : comment on compile un .cc sous linux ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR