On 2005-03-02, Chris Olson <[EMAIL PROTECTED]> wrote:
> What does this mean in PODS and how do I fix it?
>
> section attribute not allowed for `double blah(double, double)'
>
> The functions all look like this:
>
> #define SECTION __attribute__ ((section (myfns)))

Section names have to be enclosed in quotation marks.
So the above should be
#define SECTION __attribute__ ((section ("myfns")))
See section 4.23 about attribute syntax in the gcc-2.95.3 docs.
(http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC84)

>
> double blah(double a, double b) SECTION;
>
> Chris Olson
>
> PS.  I'm new to the GNU tool chain (actually, its just been a LOOOOONG 
> time ...) on the palm, and I've read the docs, and scoured the archives 
> (which are really tough to search by-the-way, at least for the issues 
> I've been having ...
>
> PSS.  As a matter of fact, I got this style from the PRC docs web-site...
>
> PSSS.  I've got a valid sections.def set up already ...
>

HTH
Ton van Overbeek

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to