This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
trivial program using lists drags in iostreams, stdio, dup()
- To: libstdc++ at gcc dot gnu dot org
- Subject: trivial program using lists drags in iostreams, stdio, dup()
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Thu, 8 Mar 2001 22:38:39 -0800
- Reply-to: Geoff Keating <geoffk at redhat dot com>
The following G++ testcase (g++.other/inline7.C):
#include <list>
std::list<int*> li;
void f ()
{
li.size ();
}
int main ()
{
li.push_back (0);
f ();
}
fails on powerpc-eabisim because the C library didn't have a dup()
function.
I'm going to fix the dup() thing, so that the regression tester can
test the C++ compiler better, but why is this trivial code dragging in
functions for dealing with files? Is there anything we can do about
this? This sounds like a problem for embedded C++ applications.
--
- Geoffrey Keating <geoffk@geoffk.org>