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


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

Re: libstdc++ problems /w egcs-2.91.52 on sparc-linux?


> 
> Hello,
> 
> 	After a clean build of egcs-2.91.52 from CVS on sparclinux, any 
> linking with libstdc++ complains about an undefined reference to
> `filebuf virtual table'.  I'm using GNU binutils v. 2.9.1 (with BFD 
> 2.9.1.0.4).  For example, the file test.cc
> 

I cannot link this simple program on Linux/Alpha. Can you like it on
Linux/Sparc?

# gcc foo.cc

will do

H.J.
---foo.cc-
struct A
{
  virtual void f() = 0;
};
struct B : A
{
  void f() {}
};

int main() { B b; return 0; }


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