This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fdopen() linker error


Ø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


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