This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

trivial program using lists drags in iostreams, stdio, dup()



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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]