This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: forwarded message from Simpkins, Andy
- To: jskov at redhat dot com
- Subject: Re: [ECOS] forwarded message from Simpkins, Andy
- From: Mark Salter <msalter at redhat dot com>
- Date: Fri, 17 Aug 2001 09:55:30 -0400
- CC: ecos-discuss at sources dot redhat dot com
- References: <15229.8135.199960.457973@zoftcorp.adsl.dk>
>>>>> Jesper Skov writes:
>> void flash_query(void* data) __attribute__ ((section
>> (".2ram.flash_query")));
>>
> this always gives a compiler error :
> parse error before `{'
> when I have the following function
> void flash_query(void* data) __attribute__ ((section (".2ram.flash_query")))
> {
> // do something
> }
The attribute has to come before the function name, right. This
should work:
void __attribute__ ((section (".2ram.flash_query"))) flash_query(void* data)
{
// do something
}
--Mark