help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c++ without libstdc++


From: Maurice
Subject: c++ without libstdc++
Date: Wed, 25 May 2005 23:59:35 +0200

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]