"Maurice" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > for an embedded system I would like to write in C++ using > gcc 2.95 but without linking to libstdc++ (its too big). > I wonder how far this is possible: > > struct Foo { > Foo(){} > ~Foo(){} > }; > int main() { Foo a; } > > $ g++ -nodefaultlibs -fno-exceptions -lc a.cc > > In function `Foo::~Foo(void)': > ... undefined reference to `__builtin_delete' > > Without this destructor there is no problem. But C++ without > using destructors... thats not funny either. > > Is there anything I can do?
I'm not sure 2.95 supports this, but you could try linking against libsupc++ which just contains the C++ language support functions - it is by no means tiny, but it's OK for a fairly modest embedded platform. John. > Thank you. _______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
