This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: fdopen() linker error
- From: Jani Monoses <jani at iv dot ro>
- To: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 24 Sep 2004 18:26:47 +0300
- Subject: Re: [ECOS] fdopen() linker error
- References: <1096039064.23830.25.camel@famine>
Øyvind Harboe wrote:
I'm getting the, linker error, but I can't figure out why.
Anyone?
$ arm-elf-gcc -Iinstall/include/ -g xxx.c -Linstall/lib -Ttarget.ld
-nostdlib
/ecos-c/temp/cc65LofB.o(.text+0x18): In function `main':
/cygdrive/c/cdtworkspace/test/xxx.c:5: undefined reference to `fdopen'
collect2: ld returned 1 exit status
hardware eb40a ;
template default ;
package -hardware CYGPKG_HAL_ARM current ;
package -hardware CYGPKG_HAL_ARM_AT91 current ;
package -hardware CYGPKG_HAL_ARM_AT91_EB40A current ;
package -hardware CYGPKG_DEVS_FLASH_EB40A current ;
package -hardware CYGPKG_DEVS_FLASH_ATMEL_AT49XXXX current ;
package -hardware CYGPKG_IO_SERIAL_ARM_AT91 current ;
package -hardware CYGPKG_DEVICES_WATCHDOG_ARM_AT91 current ;
package -template CYGPKG_HAL current ;
package -template CYGPKG_IO current ;
package -template CYGPKG_IO_SERIAL current ;
package -template CYGPKG_INFRA current ;
package -template CYGPKG_KERNEL current ;
package -template CYGPKG_MEMALLOC current ;
package -template CYGPKG_ISOINFRA current ;
package -template CYGPKG_LIBC current ;
package -template CYGPKG_LIBC_I18N current ;
package -template CYGPKG_LIBC_SETJMP current ;
package -template CYGPKG_LIBC_SIGNALS current ;
package -template CYGPKG_LIBC_STARTUP current ;
package -template CYGPKG_LIBC_STDIO current ;
package -template CYGPKG_LIBC_STDLIB current ;
package -template CYGPKG_LIBC_STRING current ;
package -template CYGPKG_LIBC_TIME current ;
package -template CYGPKG_LIBM current ;
package -template CYGPKG_IO_WALLCLOCK current ;
package -template CYGPKG_ERROR current ;
package CYGPKG_POSIX current ;
};
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
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss