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?
Thank you.
_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to