From: Ulf M. <ulf...@ho...> - 2002-02-27 17:58:02
|
>You might try invoking with g++ instead of gcc. g++ automatically >links >libstdc++. > > Paul G. > > > [Ulf] > > When I try to define a vector with pointers to member functions I > > get a > > bunch of linker errors > > > > [Wirawan] > > What are the errors? I've tried here and everything turns out OK. > > Exceptthat you have to define what void A::a() is. > > Probably you need to include libstdc++.a in the linking process. > > Add this > > option to your command line: > > > > -lstdc++ > > > > If you can't find libstdc++.a, you probably need to get it. > > > > Good luck > > Wirawan > > > > Paul: I have been invoking with g++ all along Wirawan: The error message is: ------ c:/mingw32/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_alloc.h: In instantiation of 'allocator<void (A::*)()>': test.cpp:18: instantiated from here c:/mingw32/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_alloc.h:750: 'allocator<void (A::*)()>::adress(void (A::* &)()) const' has already been declared in 'allocator<void (A::*)()>' ------ Ulfalizer _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com |