Title: Problems with gcc 3.1
Greetings,
Perhaps one of you gcc gurus can help me out.
I am using gcc on a Macintosh running OSX 10.2.1 with the latest Developer Tools installed. The Developer Tools include both gcc 3.1 and 2.9.5. I'm having trouble compiling with gcc 3.1. However, gcc 2.9.5 seems to work fine. I am using the following simple program:
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main()
{
��������cout << "Hello World!" << endl << endl;
��������return (0);
}
When I try to compile this with g++, I get:
ld: Undefined symbols:
__Unwind_Resume
__Unwind_GetDataRelBase
__Unwind_GetIP
__Unwind_GetLanguageSpecificData
__Unwind_GetRegionStart
__Unwind_GetTextRelBase
__Unwind_SetGR
__Unwind_SetIP
__Unwind_DeleteException
__Unwind_RaiseException
When I try to compile with gcc, I get:
ld: Undefined symbols:
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> >&))
std::ios_base::Init::Init[in-charge]()
std::ios_base::Init::~Init [in-charge]()
std::cout
std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
___gxx_personality_v0
As I mentioned above, I can compile the same thing with g++2 or gcc2 (i.e., gcc 2.9.5) and it compiles, no problem.
Thanks, in advance, for any insights.
- David McBride
- Re: Problems with gcc 3.1 David McBride
- Re: Problems with gcc 3.1 Martin Costabel
