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

_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to