[ECOS] fdopen() linker error

Gary Thomas gary@mlbassoc.com
Mon Sep 27 06:53:00 GMT 2004


On Sun, 2004-09-26 at 03:35, Øyvind Harboe wrote:
> søn, 26.09.2004 kl. 02.14 skrev Gary Thomas:
> > On Sat, 2004-09-25 at 10:49, Øyvind Harboe wrote:
> > > > You need to add the fileio package I think
> > > > look at the ifdef around fdopen() in
> > > > language/c/libc/stdio/current/src/common/fopen.cxx
> > > 
> > > Ouch, I should have figured that one out.
> > > 
> > > Is it the intended behaviour that there is only an error link time and
> > > not at compile time?
> > 
> > There should be a compile time error if you build with -Wall
> > Otherwise, C blissfully (cute, huh(1)?) will compile anything
> > and not complain until you try to link it.
> 
> In that case, there is a missing #if in the header files for fdopen() +
> the other prototype next to it.

Agreed - a generic header like "stdio.h" should not export anything
unless it is well known to be available.  The attached patch would
seem appropriate.  Jonathan?

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diffs
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040927/38df4570/attachment.bin>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list