public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* c++ compiling
@ 2004-05-03 22:18 Jesus Eduardo Lidanski
  2004-05-03 22:37 ` SV: " Sigurd Saue
  0 siblings, 1 reply; 6+ messages in thread
From: Jesus Eduardo Lidanski @ 2004-05-03 22:18 UTC (permalink / raw)
  To: gcc-help

hello!
i have a very strange problem, please help me.
i tried to compile a c++ program:

#include <iostream>
using namespace std;


int main()
{
   cout << "Hello World!\n";
   return 0;
}

and everything was okay ....
the next day i tried to compile another program, a basic program, but it gave 
me a lot of errors, and i tried to compile another time my first program... 
and i got the following errors:

jesus_edu@linux:~/Documents/C++> gcc prueba.cpp
/tmp/ccIan2q6.o(.text+0xd): In function `std::__verify_grouping(char const*, 
uns
igned int, std::basic_string<char, std::char_traits<char>, 
std::allocator<char>
> const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, 
std::a
llocator<char> >::size() const'
/tmp/ccIan2q6.o(.text+0x60): In function `std::__verify_grouping(char const*, 
un
signed int, std::basic_string<char, std::char_traits<char>, 
std::allocator<char>
 > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, 
std::a
llocator<char> >::operator[](unsigned int) const'
/tmp/ccIan2q6.o(.text+0x9f): In function `std::__verify_grouping(char const*, 
un
signed int, std::basic_string<char, std::char_traits<char>, 
std::allocator<char>                                                                             
> const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, 
std::a                                                                            
llocator<char> >::operator[](unsigned int) const'
/tmp/ccIan2q6.o(.text+0xce): In function `std::__verify_grouping(char const*, 
un                                                                            
signed int, std::basic_string<char, std::char_traits<char>, 
std::allocator<char>                                                                             
> const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, 
std::a                                                                            
llocator<char> >::operator[](unsigned int) const'
/tmp/ccIan2q6.o(.text+0x127): In function `main':
: undefined reference to `std::cout'
/tmp/ccIan2q6.o(.text+0x12c): 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/ccIan2q6.o(.text+0x155): In function 
`__static_initialization_and_destructi                                                                            
on_0(int, int)':
: undefined reference to `std::ios_base::Init::Init()'
/tmp/ccIan2q6.o(.text+0x170): In function 
`__static_initialization_and_destructi                                                                            
on_0(int, int)':
: undefined reference to `std::ios_base::Init::~Init()'
/tmp/ccIan2q6.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
jesus_edu@linux:~/Documents/C++>


what ist this?? how can i compile programs ? why do i get these errors?
thanks,
eduardo lidanski

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-05-04 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-03 22:18 c++ compiling Jesus Eduardo Lidanski
2004-05-03 22:37 ` SV: " Sigurd Saue
2004-05-03 22:46   ` Jesus Eduardo Lidanski
2004-05-03 23:07   ` Jesus Eduardo Lidanski
2004-05-04 13:17     ` Eljay Love-Jensen
2004-05-04 13:20     ` SV: " Sigurd Saue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).