duda compilando con gcc
Hola!
Desde hace tiempo me aparece una cosa rara al compilar,
el programa es tan sencillo como este:
//hola.cc
#include <iostream>
using namespace std;
main()
{
cout<<"hola debian!";
}
y al compilar aparece este mensaje:
/tmp/ccFtFqDr.o(.text+0x19): In function `main':
: referencia a `std::cout' sin definir
/tmp/ccFtFqDr.o(.text+0x1e): In function `main':
: referencia a `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*)' sin definir
/tmp/ccFtFqDr.o(.text+0x4a): In function `__static_initialization_and_destruction_0(int, int)':
: referencia a `std::ios_base::Init::Init[in-charge]()' sin definir
/tmp/ccFtFqDr.o(.text+0x79): In function `__tcf_0':
: referencia a `std::ios_base::Init::~Init [in-charge]()' sin definir
/tmp/ccFtFqDr.o(.eh_frame+0x11): referencia a `__gxx_personality_v0' sin definir
collect2: ld devolvió el estado de salida 1
buff!!! realmente no se que puede ser, ¿alguien tiene alguna idea? debe ser algo evidente porque el codigo es minimo y
casi "de mentira".
Uso el compilador 3.2.3, en una knoppix 3.3, pero me sucede algo parecido compilando en mandrake 9.1 con gcc 3.3
gracias
soviet
--
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.
Powered by Outblaze
Reply to: