Bonjour,
pour comencer jai trois fichier
crypto.h, main.cpp et crypto.cpp
je lance
$ gcc -c crypto.cpp
In file included from crypto.cpp:2:
crypto.h:15: warning: ‘int main(int)’ takes only zero or two arguments
crypto.cpp: In function ‘void aide()’:
crypto.cpp:106: warning: deprecated conversion from string constant to ‘char*’
crypto.cpp: In function ‘void apropos()’:
crypto.cpp:116: warning: deprecated conversion from string constant to ‘char*’
$ gcc -c main.cpp
In file included from main.cpp:1:
crypto.h:15: warning: ‘int main(int)’ takes only zero or two arguments
main.cpp:3: warning: ‘int main(int)’ takes only zero or two arguments
main.cpp: In function ‘int main(int)’:
main.cpp:22: warning: deprecated conversion from string constant to ‘char*’
main.cpp:36: warning: deprecated conversion from string constant to ‘char*’
$ gcc -o crypt main.o crypto.o
main.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
crypto.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
voila les commande sont t'elle bonne ?
suite a la derniere commande la compilation ne me donner pas de fichier executable?
merci a tous !
Pmastery
