This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Linking problem when removing ISO C standard input/output functions
- From: John Dallaway <john at dallaway dot org dot uk>
- To: "Alois Z." <alois dot zoitl at gmx dot at>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 07 Sep 2011 08:29:17 +0100
- Subject: [ECOS] Re: Linking problem when removing ISO C standard input/output functions
- References: <20110906213341.14310@gmx.net>
Hi Alois
Alois Z. wrote:
> I have a very strange problem. I'm currently removing not needed features
> from my eCos configuration in order to save some space for a rather small
> system. For this I don't need the standard input/output functions.
> However every time I try to unload the ISO C library standard input/output
> functions package I get the following linker error when linking the
> application:
>
> /ecos-c/cygwin/opt/ecos/ecos-3.0/packages/hal/common/v3_0/src/hal_if.c:1065: undefined reference to `cyg_hal_plf_comms_init'
>
> I'm working an an AT91SAM7S256. I already compared the ecc files of working
> versions and not working versions but IMHO I see only changes that reflect
> the removing of standard i/o functions.
I've just tried building eCos 3.0 for at91sam7sek with default template
and CYGPKG_LIBC_STDIO removed:
> [jld@cog test]$ ecosconfig check
> Target: at91sam7sek
> Template: default
> Removed:
> CYGPKG_LIBC_STDIO
> No conflicts
> [jld@cog test]$
I was able to link with the following trivial application without problem:
> #include <cyg/infra/diag.h>
>
> int main(void) {
> diag_printf("Hello world\n");
> return 0;
> }
Try linking your eCos library with a trivial application first and work
from there.
John Dallaway
eCos maintainer
http://www.dallaway.org.uk/john
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss