else if (delta == 0) { cout<<"racines double: "<< -b/2;}
else { cout<<"pas de raciens reelles";}
}
lorsque je fais gcc racines, j'ai les erreurs suivantes
linuxhome/marc # gcc racines.cpp
/tmp/ccqZp2dW.o: In function `main':
/tmp/ccqZp2dW.o(.text+0xf): undefined reference to `cout'
/tmp/ccqZp2dW.o(.text+0x14): undefined reference to `ostream: perator<<(char const *)'
/tmp/ccqZp2dW.o(.text+0x24): undefined reference to `cout'
/tmp/ccqZp2dW.o(.text+0x29): undefined reference to `ostream: perator<<(char const *)'
/tmp/ccqZp2dW.o(.text+0x39): undefined reference to `cin'
/tmp/ccqZp2dW.o(.text+0x3e): undefined reference to `istream: perator>>(int &)'
/tmp/ccqZp2dW.o(.text+0x4e): undefined reference to `cout'
/tmp/ccqZp2dW.o(.text+0x53): undefined reference to `ostream: perator<<(char const *)'
/tmp/ccqZp2dW.o(.text+0x63): undefined reference to `cin'
/tmp/ccqZp2dW.o(.text+0x68): undefined reference to `istream: perator>>(int &)'
/tmp/ccqZp2dW.o(.text+0x78): undefined reference to `cout'
/tmp/ccqZp2dW.o(.text+0x7d): undefined reference to `ostream: perator<<(char const *)'
/tmp/ccqZp2dW.o(.text+0x8d): undefined reference to `cin'
/tmp/ccqZp2dW.o(.text+0x92): undefined reference to `istream: perator>>(int &)'
/tmp/ccqZp2dW.o(.text+0xec): undefined reference to `cout'
/tmp/ccqZp2dW.o(.text+0xf1): undefined reference to `ostream: perator<<(char const *)'
/tmp/ccqZp2dW.o(.text+0x123): undefined reference to `sqrt'
/tmp/ccqZp2dW.o(.text+0x146): undefined reference to `cout'
/tmp/ccqZp2dW.o(.text+0x14b): undefined reference to `ostream: perator<<(char const *)'
/tmp/ccqZp2dW.o(.text+0x156): undefined reference to `ostream: perator<<(double)'
/tmp/ccqZp2dW.o(.text+0x161): undefined reference to `ostream::operator<<(char const *)'
/tmp/ccqZp2dW.o(.text+0x193): undefined reference to `sqrt'
/tmp/ccqZp2dW.o(.text+0x1b6): undefined reference to `cout'
/tmp/ccqZp2dW.o(.text+0x1bb): undefined reference to `ostream::operator<<(char const *)'
/tmp/ccqZp2dW.o(.text+0x1c6): undefined reference to `ostream::operator<<(double)'
/tmp/ccqZp2dW.o(.text+0x1d1): undefined reference to `ostream::operator<<(char const *)'
/tmp/ccqZp2dW.o(.text+0x215): undefined reference to `cout'
/tmp/ccqZp2dW.o(.text+0x21a): undefined reference to `ostream::operator<<(char const *)'
/tmp/ccqZp2dW.o(.text+0x225): undefined reference to `ostream::operator<<(int)'
/tmp/ccqZp2dW.o(.text+0x239): undefined reference to `cout'
/tmp/ccqZp2dW.o(.text+0x23e): undefined reference to `ostream::operator<<(char const *)'
collect2: ld returned 1 exit status
linuxhome/marc #
Publicité
Posté le 12-10-2002 à 00:19:42
leirn
A.D.I.D.A.S.
Posté le 12-10-2002 à 00:22:46
il a vraisemblablement pas charger iostream et math...
---------------
"Je brandirai une épée d'orichalque, je m'assouvirai sur des Templiers." | "Avec dans son sillage l'Ombre du Diable, Leirn appelait les morts pour une danse macabre et déchainaît les horreurs de la nuit..."
R@NNIS
Tout est possible ou presque.
Posté le 12-10-2002 à 00:51:27
avec g++ ?
PS: man de gcc ==>
gcc assumes preprocessed (.i) files are C and assumes C style
linking.
g++ assumes preprocessed (.i) files are C++ and assumes C++ style
linking.
gcc assumes preprocessed (.i) files are C and assumes C style
linking.
g++ assumes preprocessed (.i) files are C++ and assumes C++ style
linking.
j'avais meme po vu
---------------
"Je brandirai une épée d'orichalque, je m'assouvirai sur des Templiers." | "Avec dans son sillage l'Ombre du Diable, Leirn appelait les morts pour une danse macabre et déchainaît les horreurs de la nuit..."