------=_Part_3_5619631.1042089611117 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit First, might I suggest that you ask these types of questions on the plug-devel list. That is what it is for. Second, it looks to me like you are not including a standard header file. Maybe you missed putting it in at the top of your module. Something like "#include " Third, it would be helpful to see the code or a part of it to know more of the full story. I'll be watching the plug-devel list... Alan Original message attached. ------=_Part_3_5619631.1042089611117 Content-Type: TEXT/HTML; name=MESSAGE.HTML; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=MESSAGE.HTML Somebody please explain what I'm doing wrong here. I'm trying to work on some of my Advanced Placement computer science AB projects here at home. Well, I typed in the code, checked it twice and ran 'gcc main.cpp' to no avail. First it gave me warnings about textspace standard so I fixed the code to make it recent (the book is 1994) and tried again. I now get all kinds of linker errors:

/tmp/ccv7OZu3.o: In function `main':
/tmp/ccv7OZu3.o(.text+0x36): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
/tmp/ccv7OZu3.o(.text+0x43): undefined reference to `std::cout'
/tmp/ccv7OZu3.o(.text+0x48): 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/ccv7OZu3.o(.text+0x51): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
/tmp/ccv7OZu3.o(.text+0x86): undefined reference to `std::cout'
/tmp/ccv7OZu3.o(.text+0x8b): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::_Setw)'
/tmp/ccv7OZu3.o(.text+0x94): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(int)'
/tmp/ccv7OZu3.o(.text+0x10b): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
/tmp/ccv7OZu3.o(.text+0x118): undefined reference to `std::cout'
/tmp/ccv7OZu3.o(.text+0x11d): 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/ccv7OZu3.o(.text+0x126): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
/tmp/ccv7OZu3.o(.text+0x15b): undefined reference to `std::cout'
/tmp/ccv7OZu3.o(.text+0x160): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::_Setw)'
/tmp/ccv7OZu3.o(.text+0x169): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(int)'
/tmp/ccv7OZu3.o(.text+0x17b): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
/tmp/ccv7OZu3.o(.text+0x180): undefined reference to `std::cout'
/tmp/ccv7OZu3.o(.text+0x185): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
/tmp/ccv7OZu3.o: In function `__static_initialization_and_destruction_0(int, int)':
/tmp/ccv7OZu3.o(.text+0x1b6): undefined reference to `std::ios_base::Init::Init[in-charge]()'
/tmp/ccv7OZu3.o: In function `__tcf_0':
/tmp/ccv7OZu3.o(.text+0x1e5): undefined reference to `std::ios_base::Init::~Init [in-charge]()'
/tmp/ccv7OZu3.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

Does anyone know what I can do about this?


-- Zach Schimke
------=_Part_3_5619631.1042089611117--