This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Linker errors while linking ecos application with libc.a
Thanks Andrew,
I changed the template from kernel to default which provides most of
these functions.
But still one error persists for the call "localtime" in which it says
"localtime_r" undefined.
For this I tried enbling "Provide BSD compatiblity functions" & "Posix
time functions" & "localtime_r" when I enable also these options
kernel is not building it says the following error
"
ecos-c/New/eCos/ecos-2.0/packages/language/c/libc/time/v2_0/src/strptime.cxx: In
function `int match_string(const char**, const char**, int)':
/ecos-c/New/eCos/ecos-2.0/packages/language/c/libc/time/v2_0/src/strptime.cxx:87:
`
strlen' undeclared (first use this function)
/ecos-c/New/eCos/ecos-2.0/packages/language/c/libc/time/v2_0/src/strptime.cxx:87:
(Each
undeclared identifier is reported only once for each function it appears
in.)
/ecos-c/New/eCos/ecos-2.0/packages/language/c/libc/time/v2_0/src/strptime.cxx:89:
`
strncasecmp' undeclared (first use this function)
make[1]: Leaving directory
`/ecos-c/New/eCos/Application/ecos_build/language/c/libc/time/v2_0'
make[1]: *** [src/strptime.o.d] Error 1
make: Leaving directory `/ecos-c/New/eCos/Application/ecos_build'
make: *** [build] Error 2
"
Please let me know if I had to enable any other options.
Thanks,
Bala.
On 6/22/05, Andrew Lunn <andrew@lunn.ch> wrote:
> On Wed, Jun 22, 2005 at 04:04:13PM +0530, Balasaravanan P wrote:
> > Basically I am using sprintf, strcmp, strcpy ...
> >
> > If I am not linking libc.a I am receving lot of undefined errors for
> > all these functions.
>
> If eCos is configured to build these functions they will be in
> libtarget.a.
>
> Which template are you using. The minimal template does not have these
> but the default template does.
>
> Andrew
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss