peachlover Posted May 30, 2004 Share Posted May 30, 2004 dava mi mnogo stranni za men gre6ki pri kompilirane na o4evidno vqrna C++ programa (o4evidno vqrna za6tot ima samo 1 operator i si4ko si i e nared) /tmp/ccreUYEI.o(.text+0x1e): In function `main':: undefined reference to `std::cout' /tmp/ccreUYEI.o(.text+0x23): In function `main': : undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(int)' /tmp/ccreUYEI.o(.text+0x50): In function `__static_initialization_and_destruction_0(int, int)': : undefined reference to `std::ios_base::Init::Init[in-charge]()' /tmp/ccreUYEI.o(.text+0x7f): In function `__tcf_0': : undefined reference to `std::ios_base::Init::~Init [in-charge]()' /tmp/ccreUYEI.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status eto tova mi dava kato se opitam da q kompiliram ako nqkoi ima ideq da kaje 6te sam blagodaren Link to comment Share on other sites More sharing options...
ov3rm4n Posted May 30, 2004 Share Posted May 30, 2004 Няма да е зле да беше показал и очевидно вярната програма... Екстрасенси няма сред нас. Link to comment Share on other sites More sharing options...
gamehack Posted May 31, 2004 Share Posted May 31, 2004 Само като видя грешките ще ти кажа, че използваш gcc за да компилираш C++ програм - голяма грешка! Използва се g++ Пробвай това: g++ file.cpp -o binary Link to comment Share on other sites More sharing options...
Shiro Posted May 31, 2004 Share Posted May 31, 2004 @ov3rm4n: да уе, трябваше да се сетим Link to comment Share on other sites More sharing options...
peachlover Posted June 1, 2004 Author Share Posted June 1, 2004 mersi gamehack Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.