From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Salter To: jskov@redhat.com Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] forwarded message from Simpkins, Andy Date: Fri, 17 Aug 2001 06:55:00 -0000 Message-id: <200108171355.f7HDtUZ20961@deneb.localdomain> References: <15229.8135.199960.457973@zoftcorp.adsl.dk> X-SW-Source: 2001-08/msg00608.html >>>>> 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