trivial program using lists drags in iostreams, stdio, dup()
Geoff Keating
geoffk@geoffk.org
Thu Mar 8 22:38:00 GMT 2001
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>
More information about the Libstdc++
mailing list