[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
stl on the Mac broken ???
From: |
shaheenz |
Subject: |
stl on the Mac broken ??? |
Date: |
7 Oct 2005 13:37:11 -0700 |
User-agent: |
G2/0.2 |
hi,
I am trying to develop some stuff on the Mac using the STL library that
comes along with g++. The OS i am using is panther 10.3.9 and the
compiler is gcc 3.3.
Even a simple program like so:
#include <vector>
using namespace std;
int main()
{
vector<int> a;
a.push_back(1);
return 1;
}
gives me the following error:
ld: Undefined symbols:
std::__default_alloc_template<true, 0>::deallocate(void*, unsigned
long)
std::__default_alloc_template<true, 0>::allocate(unsigned long)
g++ main.cpp or even g++ main.cpp -lstdc++
however, g++2 main.cpp works fine. i need 3.3 to work though.
any clues why???
thanks in advance,
shaheenz
- stl on the Mac broken ???,
shaheenz <=