cs_Metrox
Messages postés267Date d'inscriptionjeudi 19 septembre 2002StatutMembreDernière intervention 8 septembre 2013
-
18 avril 2004 à 20:48
cs_djl
Messages postés3011Date d'inscriptionjeudi 26 septembre 2002StatutMembreDernière intervention27 novembre 2004
-
20 avril 2004 à 19:43
'lut all, je tourne ss une debian (knoppix, pr etre precis), et j'essaie de compiler un truc tt bete, mais il me sort une erreur...
que faire?!?
CODE(essai.cpp):
#include
#include <stdio.h>
int main(int argc, char *argv[])
{
cout << "Salut";
return 0;
}
Erreur:
essai.cpp:12:2: warning: no newline at end of file
/tmp/cc31ZRUj.o(.text+0x1b): In function `main':
: undefined reference to `std::cout'
/tmp/cc31ZRUj.o(.text+0x20): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/cc31ZRUj.o(.text+0x49): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init[in-charge]()'
/tmp/cc31ZRUj.o(.text+0x7a): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init [in-charge]()'
/tmp/cc31ZRUj.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status