Usually this means that there is an extra #endif someplace, or one of the
#ifdef is missing... Try to search for all #endif's and #ifndef's and make
sure they all match. Maybe you have #ifdef instead of #ifndef someplace?
Fima.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Richard
> Anderson
> Sent: Monday, September 18, 2000 8:57 AM
> To: Palm Developer Forum
> Subject: #ifndef problem - works for most files but seems to go wrong
>
>
> Hi
>
> I am using the standard header file protection:
>
> #ifndef _blah_h
> #define _blah_h
>
> blah
> blah
> blah
>
> #endif
>
> This works fine most of the time. I use it in 10 header files, but the in
> the tenth header file it dont work and I get link errors telling
> me the data
> within has been redfined in all the C files which include the
> header, ie the
> protection seems to fail.
> Ive triple checked everything but I cant see whats wrong. Anyone seem this
> before or got any ideas ?
>
> Thanks
>
> Rik
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/