Jump to content
BulForum.com

problem s GCC


Recommended Posts

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

Само като видя грешките ще ти кажа, че използваш gcc за да компилираш C++ програм - голяма грешка! Използва се g++ :) Пробвай това:

g++ file.cpp -o binary

Link to comment
Share on other sites

mersi gamehack

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...