This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: function not found in extras.o
- From: "kross at elands dot co dot nz" <kross at elands dot co dot nz>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 30 Mar 2005 09:03:38 +1200
- Subject: Re: [ECOS] function not found in extras.o
- Reply-to: kross at elands dot co dot nz
On Tue Mar 29 21:15 , Bart Veer <bartv@ecoscentric.com> sent:
...extern "C" (or by using the eCos externC macro), so the
>compiler will assume that function has C++ linkage. Presumably the
>implementation of the function is in C code so has C linkage.
>
>Either use arm-elf-gcc to compile main.c, or prototype the modem
>function with externC, or preferably both.
>
>Bart
Thanks Bart.
Right on the money.
Keith
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss