Can't compile fstream.h

Alessandro Coelho Ribeiro sandro@agentel.com.br
Mon Jan 12 12:51:00 GMT 1998


Alexandre Oliva wrote:

> > I still can't compile fstream.h.
>
> Would you post a code snippet that produces the error you describe?
> This will help reproducing your problem and possibly fixing a bug in
> egcs.
>

I'm sending you the following files:          sngoa/config/config
// compilation parameters
                                 /config.machine   // edit home directory
          sngoa/lib/localbase.cc  // trying to compile this file will
produce the error
                          /Makefile
          sngoa/include/localbase.hh
          sngoa/bin/sngoa.slave.cc // trying to link sngoa.slave.o produces
another error
                            /Makefile


This code cannot be fully compiled, because there are many files missing.
The project, in any compilable version, is quite big (>1M).  Anyway, it's
enough to produce the 1st error.
Working around it,  I discovered that I always get to compile the code the
second time.  It reminds me that if people used software engineering to
repair cars.
So, I've got to compile the libs, but linking sngoa.slave produces the
errors:

"
...undefined reference to ios::virtual table...
...undefined reference to ostream::virtual table...
...undefined reference to ofstream::virtual table...
"

The full listing is attached.



Thanks for your help,

Alessandro Coelho Ribeiro
(sandro@agentel.com.br,sandro@cos.ufrj.br,sandro@acm.org)


> --
> Alexandre Oliva
> mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
> http://www.dcc.unicamp.br/~oliva
> Universidade Estadual de Campinas, SP, Brasil






More information about the Gcc-bugs mailing list