Have you ever thought what is the
use of those #define's if they are
used as you suggested??
"v srinivas" <[EMAIL PROTECTED]> wrote in message
news:21325@palm-dev-forum...
>
> hello nicolas,
> The probelm is #define functions.You are not
> properly using it.The actual code should return like
> this.
>
> #ifndef __LIBMY_H__
> #define __LIBMY_H__
> #endif
>
> void pmsg( const char* );
> void perr( const char* , int );
> void pbuffer( const char* , int );
> void pmsgat( const char* , int );
> void pnbr( const char* , unsigned long );
>
> char* strndup( const char* , int );
> void strnlsl( char* , int );
> int strncmp( const char* , const char* , int );
>
> int getnbr( const char* );
>
>
> ******** END ***************
>
>
> --- Nicolas FRAYER <[EMAIL PROTECTED]> wrote:
> > hello,
> > I work under CW and when I try to compile my code
> > source , it says :
> > "Error : illegal use of precompiled header
> > libmy.c line 22 int getnbr(const char* str);"
> > I really don't understand why ???
> > my header file looks like this :
> > #ifndef __LIBMY_H__
> > #define __LIBMY_H__
> >
> > void pmsg( const char* );
> > void perr( const char* , int );
> > void pbuffer( const char* , int );
> > void pmsgat( const char* , int );
> > void pnbr( const char* , unsigned long );
> >
> > char* strndup( const char* , int );
> > void strnlsl( char* , int );
> > int strncmp( const char* , const char* , int );
> >
> > int getnbr( const char* );
> >
> > #endif /* __LIBMY_H__ */
> >
> > Can you help me ?
> > thanx
> > Nicolas Frayer.
> > +33 1 45 82 13 43
> > +33 6 68 78 90 44
> >
> >
> ________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at
> > http://www.hotmail.com
> >
> >
> > --
> > For information on using the Palm Developer Forums,
> > or to unsubscribe, please see
> http://www.palmos.com/dev/tech/support/forums/
>
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/